/** Convenience method that associates the specified {@code width} and {@code height} with the keys {@value PropertiesConstants#PROP_PANE_WIDTH} and {@value PropertiesConstants#PROP_PANE_HEIGHT}*/ public void setPaneDimension(int width, int height) { put(PROP_PANE_WIDTH, width); put(PROP_PANE_HEIGHT, height); } }
/** Convenience method that associates the boolean value {@code italic} with the key {@value PropertiesConstants#PROP_PROMPT_ITALIC} */ public void setPromptItalic(boolean italic) { put(PROP_PROMPT_ITALIC, italic); }
/** Convenience method that associates the specified {@code bgcolor} with the key {@value PropertiesConstants#PROP_PANE_BGCOLOR} */ public void setPaneBackgroundColor(String bgcolor) { put(PROP_PANE_BGCOLOR, bgcolor); } /** Convenience method that associates the hex representation of the specified {@code bgcolor} with the key {@value PropertiesConstants#PROP_PANE_BGCOLOR} */
/** Convenience method that associates the specified {@code width} with the key {@value PropertiesConstants#PROP_PANE_WIDTH} */ public void setPaneWidth(int width) { put(PROP_PANE_WIDTH, width); } /** Convenience method that associates the specified {@code height} with the key {@value PropertiesConstants#PROP_PANE_HEIGHT} */
/** Convenience method that associates the specified {@code height} with the key {@value PropertiesConstants#PROP_PANE_HEIGHT} */ public void setPaneHeight(int height) { put(PROP_PANE_HEIGHT, height); } /** Convenience method that associates the specified {@code width} and {@code height} with the keys {@value PropertiesConstants#PROP_PANE_WIDTH} and {@value PropertiesConstants#PROP_PANE_HEIGHT}*/
/** Convenience method that associates the boolean value {@code underline} with the key {@value PropertiesConstants#PROP_PROMPT_UNDERLINE} */ public void setPromptUnderline(boolean underline) { put(PROP_PROMPT_UNDERLINE, underline); }
/** Convenience method that associates the specified {@code bgcolor} with the key {@value PropertiesConstants#PROP_PROMPT_BGCOLOR} */ public void setPromptBackgroundColor(String bgcolor) { put(PROP_PROMPT_BGCOLOR, bgcolor); }
/** Convenience method that associates the specified {@code bgcolor} with the key {@value PropertiesConstants#PROP_INPUT_BGCOLOR} */ public void setInputBackgroundColor(String bgcolor) { put(PROP_INPUT_BGCOLOR, bgcolor); }
/** Convenience method that associates the boolean value {@code italic} with the key {@value PropertiesConstants#PROP_INPUT_ITALIC} */ public void setInputItalic(boolean italic) { put(PROP_INPUT_ITALIC, italic); }
/** Convenience method that associates the specified {@code color} with the key {@value PropertiesConstants#PROP_INPUT_COLOR} */ public void setInputColor(String color) { put(PROP_INPUT_COLOR, color); }
/** Convenience method that associates the boolean value {@code underline} with the key {@value PropertiesConstants#PROP_INPUT_UNDERLINE} */ public void setInputUnderline(boolean underline) { put(PROP_INPUT_UNDERLINE, underline); }
/** Convenience method that associates the specified {@code color} with the key {@value PropertiesConstants#PROP_PROMPT_COLOR} */ public void setPromptColor(String color) { put(PROP_PROMPT_COLOR, color); }
/** Convenience method that associates the boolean value {@code bold} with the key {@value PropertiesConstants#PROP_PROMPT_BOLD} */ public void setPromptBold(boolean bold) { put(PROP_PROMPT_BOLD, bold); }
/** Convenience method that associates the boolean value {@code bold} with the key {@value PropertiesConstants#PROP_INPUT_BOLD} */ public void setInputBold(boolean bold) { put(PROP_INPUT_BOLD, bold); }
public void putAll(Map<String, ? extends Object> map) { if(map == null) return; map.entrySet().forEach(entry -> put(entry.getKey(), entry.getValue())); }
/** Convenience method that associates the hex representation of the specified {@code bgcolor} with the key {@value PropertiesConstants#PROP_PROMPT_BGCOLOR} */ public void setPromptBackgroundColor(Color bgcolor) { put(PROP_PROMPT_BGCOLOR, toHex(bgcolor)); }
/** Convenience method that associates the hex representation of the specified {@code color} with the key {@value PropertiesConstants#PROP_INPUT_COLOR} */ public void setInputColor(Color color) { put(PROP_INPUT_COLOR, toHex(color)); }
/** Convenience method that associates the hex representation of the specified {@code bgcolor} with the key {@value PropertiesConstants#PROP_INPUT_BGCOLOR} */ public void setInputBackgroundColor(Color bgcolor) { put(PROP_INPUT_BGCOLOR, toHex(bgcolor)); }
/** Convenience method that associates the hex representation of the specified {@code bgcolor} with the key {@value PropertiesConstants#PROP_PANE_BGCOLOR} */ public void setPaneBackgroundColor(Color bgcolor) { put(PROP_PANE_BGCOLOR, toHex(bgcolor)); }
/** Convenience method that associates the hex representation of the specified {@code color} with the key {@value PropertiesConstants#PROP_PROMPT_COLOR} */ public void setPromptColor(Color color) { put(PROP_PROMPT_COLOR, toHex(color)); }