public String rowPut(String key, Size value) { return rowPut(key, value.encode()); }
public String rowPut(String key, Size value) { return rowPut(key, value.encode()); }
/** * Associates the specified ColumnSpec with the specified key in this map. * If the map previously contained a mapping for this key, the old value * is replaced by the specified value. The RowSpec set in this map * override an association - if any - in the chain of parent LayoutMaps.<p> * * The RowSpec must not be {@code null}. To remove an association * from this map use {@link #rowRemove(String)}. * * @param key key with which the specified value is to be associated. * @param value ColumnSpec to be associated with the specified key. * @return previous ColumnSpec associated with specified key, * or {@code null} if there was no mapping for key. * * @throws NullPointerException if the {@code key} or {@code value} * is {@code null}. * * @see Map#put(Object, Object) */ public String rowPut(String key, RowSpec value) { return rowPut(key, value.encode()); }
private void rowPut(String key, String[] aliases, RowSpec value) { ensureLowerCase(key); rowPut(key, value); for (int i=0; i < aliases.length; i++) { ensureLowerCase(aliases[i]); ROW_ALIASES.put(aliases[i], key); } }
/** * Associates the specified ColumnSpec with the specified key in this map. * If the map previously contained a mapping for this key, the old value * is replaced by the specified value. The RowSpec set in this map * override an association - if any - in the chain of parent LayoutMaps.<p> * * The RowSpec must not be {@code null}. To remove an association * from this map use {@link #rowRemove(String)}. * * @param key key with which the specified value is to be associated. * @param value ColumnSpec to be associated with the specified key. * @return previous ColumnSpec associated with specified key, * or {@code null} if there was no mapping for key. * * @throws NullPointerException if the {@code key} or {@code value} * is {@code null}. * * @see Map#put(Object, Object) */ public String rowPut(String key, RowSpec value) { return rowPut(key, value.encode()); }
private void rowPut(String key, String[] aliases, RowSpec value) { ensureLowerCase(key); rowPut(key, value); for (String aliase : aliases) { ensureLowerCase(aliase); ROW_ALIASES.put(aliase, key); } }
map.rowPut( "label-component-gap", new String[]{"lcg", "lcgap"}, FormFactory.LABEL_COMPONENT_GAP_ROWSPEC); map.rowPut( "related-gap", new String[]{"rg", "rgap"}, FormFactory.RELATED_GAP_ROWSPEC); map.rowPut( "unrelated-gap", new String[]{"ug", "ugap"}, FormFactory.UNRELATED_GAP_ROWSPEC); map.rowPut( "narrow-line-gap", new String[]{"nlg", "nlgap"}, FormFactory.NARROW_LINE_GAP_ROWSPEC); map.rowPut( "line-gap", new String[]{"lg", "lgap"}, FormFactory.LINE_GAP_ROWSPEC); map.rowPut( "paragraph-gap", new String[]{"pg", "pgap"}, FormFactory.PARAGRAPH_GAP_ROWSPEC); map.rowPut( "dialog-margin", new String[]{"dm", "dmargin"}, RowSpec.createGap(LayoutStyle.getCurrent().getDialogMarginY())); map.rowPut(
map.rowPut( "related-gap", new String[]{"rg", "rgap"}, FormFactory.RELATED_GAP_ROWSPEC); map.rowPut( "unrelated-gap", new String[]{"ug", "ugap"}, FormFactory.UNRELATED_GAP_ROWSPEC); map.rowPut( "narrow-line-gap", new String[]{"nlg", "nlgap"}, FormFactory.NARROW_LINE_GAP_ROWSPEC); map.rowPut( "line-gap", new String[]{"lg", "lgap"}, FormFactory.LINE_GAP_ROWSPEC); map.rowPut( "paragraph-gap", new String[]{"pg", "pgap"}, FormFactory.PARAGRAPH_GAP_ROWSPEC); map.rowPut( "dialog-margin", new String[]{"dm", "dmargin"}, RowSpec.createGap(LayoutStyle.getCurrent().getDialogMarginY())); map.rowPut( "tabbed-dialog-margin", new String[]{"tdm", "tdmargin"}, RowSpec.createGap(LayoutStyle.getCurrent().getTabbedDialogMarginY())); map.rowPut(