@Override public final String getValue() { return header.getDescription(); }
/** * Configures the component default properties from the given header. * * @param header the header to install the components into. */ protected void installComponentDefaults(JXHeader header) { // JW: force a not UIResource for properties which have ui default values // like color, font, ?? titleLabel.setFont(getAsNotUIResource(header.getTitleFont())); titleLabel.setForeground(getAsNotUIResource(header.getTitleForeground())); titleLabel.setText(header.getTitle()); descriptionPane.setFont(getAsNotUIResource(header.getDescriptionFont())); descriptionPane.setForeground(getAsNotUIResource(header.getDescriptionForeground())); descriptionPane.setOpaque(false); descriptionPane.setText(header.getDescription()); descriptionPane.setLineWrap(true); imagePanel.setIcon(header.getIcon()); }
/** * Configures the component default properties from the given header. * * @param header the header to install the components into. */ protected void installComponentDefaults(JXHeader header) { // JW: force a not UIResource for properties which have ui default values // like color, font, ?? titleLabel.setFont(getAsNotUIResource(header.getTitleFont())); titleLabel.setForeground(getAsNotUIResource(header.getTitleForeground())); titleLabel.setText(header.getTitle()); descriptionPane.setFont(getAsNotUIResource(header.getDescriptionFont())); descriptionPane.setForeground(getAsNotUIResource(header.getDescriptionForeground())); descriptionPane.setOpaque(false); descriptionPane.setText(header.getDescription()); descriptionPane.setLineWrap(true); imagePanel.setIcon(header.getIcon()); }
/** * Sets the description for this header. This may use HTML, such as * that supported by JLabel (version 3.2 of the HTML spec). * * @param description the description. May be null, may be HTML or plain text. */ public void setDescription(String description) { String old = getDescription(); this.description = description; firePropertyChange("description", old, getDescription()); }
/** * Configures the component default properties from the given header. * * @param header the header to install the components into. */ protected void installComponentDefaults(JXHeader header) { // JW: force a not UIResource for properties which have ui default values // like color, font, ?? titleLabel.setFont(getAsNotUIResource(header.getTitleFont())); titleLabel.setForeground(getAsNotUIResource(header.getTitleForeground())); titleLabel.setText(header.getTitle()); descriptionPane.setFont(getAsNotUIResource(header.getDescriptionFont())); descriptionPane.setForeground(getAsNotUIResource(header.getDescriptionForeground())); descriptionPane.setOpaque(false); descriptionPane.setText(header.getDescription()); descriptionPane.setLineWrap(true); imagePanel.setIcon(header.getIcon()); }
/** * Sets the description for this header. This may use HTML, such as * that supported by JLabel (version 3.2 of the HTML spec). * * @param description the description. May be null, may be HTML or plain text. */ public void setDescription(String description) { String old = getDescription(); this.description = description; firePropertyChange("description", old, getDescription()); }
/** * Configures the component default properties from the given header. * * @param header the header to install the components into. */ protected void installComponentDefaults(JXHeader header) { // JW: force a not UIResource for properties which have ui default values // like color, font, ?? titleLabel.setFont(getAsNotUIResource(header.getTitleFont())); titleLabel.setForeground(getAsNotUIResource(header.getTitleForeground())); titleLabel.setText(header.getTitle()); descriptionPane.setFont(getAsNotUIResource(header.getDescriptionFont())); descriptionPane.setForeground(getAsNotUIResource(header.getDescriptionForeground())); descriptionPane.setOpaque(false); descriptionPane.setText(header.getDescription()); descriptionPane.setLineWrap(true); imagePanel.setIcon(header.getIcon()); }
/** * Sets the description for this header. This may use HTML, such as * that supported by JLabel (version 3.2 of the HTML spec). * * @param description the description. May be null, may be HTML or plain text. */ public void setDescription(String description) { String old = getDescription(); this.description = description; firePropertyChange("description", old, getDescription()); }
/** * Configures the component default properties from the given header. * * @param header the header to install the components into. */ protected void installComponentDefaults(JXHeader header) { // JW: force a not UIResource for properties which have ui default values // like color, font, ?? titleLabel.setFont(getAsNotUIResource(header.getTitleFont())); titleLabel.setForeground(getAsNotUIResource(header.getTitleForeground())); titleLabel.setText(header.getTitle()); descriptionPane.setFont(getAsNotUIResource(header.getDescriptionFont())); descriptionPane.setForeground(getAsNotUIResource(header.getDescriptionForeground())); descriptionPane.setOpaque(false); descriptionPane.setText(header.getDescription()); descriptionPane.setLineWrap(true); imagePanel.setIcon(header.getIcon()); }
/** * Sets the description for this header. This may use HTML, such as * that supported by JLabel (version 3.2 of the HTML spec). * * @param description the description. May be null, may be HTML or plain text. */ public void setDescription(String description) { String old = getDescription(); this.description = description; firePropertyChange("description", old, getDescription()); }
/** * Sets the description for this header. This may use HTML, such as * that supported by JLabel (version 3.2 of the HTML spec). * * @param description the description. May be null, may be HTML or plain text. */ public void setDescription(String description) { String old = getDescription(); this.description = description; firePropertyChange("description", old, getDescription()); }
protected void onPropertyChange(JXHeader h, String propertyName, Object oldValue, final Object newValue) { if ("title".equals(propertyName)) { titleLabel.setText(h.getTitle()); } else if ("description".equals(propertyName)) { descriptionPane.setText(h.getDescription()); } else if ("icon".equals(propertyName)) { imagePanel.setIcon(h.getIcon()); } else if ("enabled".equals(propertyName)) { boolean enabled = h.isEnabled(); titleLabel.setEnabled(enabled); descriptionPane.setEnabled(enabled); imagePanel.setEnabled(enabled); } else if ("titleFont".equals(propertyName)) { titleLabel.setFont((Font)newValue); } else if ("descriptionFont".equals(propertyName)) { descriptionPane.setFont((Font)newValue); } else if ("titleForeground".equals(propertyName)) { titleLabel.setForeground((Color)newValue); } else if ("descriptionForeground".equals(propertyName)) { descriptionPane.setForeground((Color)newValue); } else if ("iconPosition".equals(propertyName)) { resetLayout(h); } }
protected void onPropertyChange(JXHeader h, String propertyName, Object oldValue, final Object newValue) { if ("title".equals(propertyName)) { titleLabel.setText(h.getTitle()); } else if ("description".equals(propertyName)) { descriptionPane.setText(h.getDescription()); } else if ("icon".equals(propertyName)) { imagePanel.setIcon(h.getIcon()); } else if ("enabled".equals(propertyName)) { boolean enabled = h.isEnabled(); titleLabel.setEnabled(enabled); descriptionPane.setEnabled(enabled); imagePanel.setEnabled(enabled); } else if ("titleFont".equals(propertyName)) { titleLabel.setFont((Font)newValue); } else if ("descriptionFont".equals(propertyName)) { descriptionPane.setFont((Font)newValue); } else if ("titleForeground".equals(propertyName)) { titleLabel.setForeground((Color)newValue); } else if ("descriptionForeground".equals(propertyName)) { descriptionPane.setForeground((Color)newValue); } else if ("iconPosition".equals(propertyName)) { resetLayout(h); } }
protected void onPropertyChange(JXHeader h, String propertyName, Object oldValue, final Object newValue) { if ("title".equals(propertyName)) { titleLabel.setText(h.getTitle()); } else if ("description".equals(propertyName)) { descriptionPane.setText(h.getDescription()); } else if ("icon".equals(propertyName)) { imagePanel.setIcon(h.getIcon()); } else if ("enabled".equals(propertyName)) { boolean enabled = h.isEnabled(); titleLabel.setEnabled(enabled); descriptionPane.setEnabled(enabled); imagePanel.setEnabled(enabled); } else if ("titleFont".equals(propertyName)) { titleLabel.setFont((Font)newValue); } else if ("descriptionFont".equals(propertyName)) { descriptionPane.setFont((Font)newValue); } else if ("titleForeground".equals(propertyName)) { titleLabel.setForeground((Color)newValue); } else if ("descriptionForeground".equals(propertyName)) { descriptionPane.setForeground((Color)newValue); } else if ("iconPosition".equals(propertyName)) { resetLayout(h); } }
protected void onPropertyChange(JXHeader h, String propertyName, Object oldValue, final Object newValue) { if ("title".equals(propertyName)) { titleLabel.setText(h.getTitle()); } else if ("description".equals(propertyName)) { descriptionPane.setText(h.getDescription()); } else if ("icon".equals(propertyName)) { imagePanel.setIcon(h.getIcon()); } else if ("enabled".equals(propertyName)) { boolean enabled = h.isEnabled(); titleLabel.setEnabled(enabled); descriptionPane.setEnabled(enabled); imagePanel.setEnabled(enabled); } else if ("titleFont".equals(propertyName)) { titleLabel.setFont((Font)newValue); } else if ("descriptionFont".equals(propertyName)) { descriptionPane.setFont((Font)newValue); } else if ("titleForeground".equals(propertyName)) { titleLabel.setForeground((Color)newValue); } else if ("descriptionForeground".equals(propertyName)) { descriptionPane.setForeground((Color)newValue); } else if ("iconPosition".equals(propertyName)) { resetLayout(h); } }
protected void onPropertyChange(JXHeader h, String propertyName, Object oldValue, final Object newValue) { if ("title".equals(propertyName)) { titleLabel.setText(h.getTitle()); } else if ("description".equals(propertyName)) { descriptionPane.setText(h.getDescription()); } else if ("icon".equals(propertyName)) { imagePanel.setIcon(h.getIcon()); } else if ("enabled".equals(propertyName)) { boolean enabled = h.isEnabled(); titleLabel.setEnabled(enabled); descriptionPane.setEnabled(enabled); imagePanel.setEnabled(enabled); } else if ("titleFont".equals(propertyName)) { titleLabel.setFont((Font)newValue); } else if ("descriptionFont".equals(propertyName)) { descriptionPane.setFont((Font)newValue); } else if ("titleForeground".equals(propertyName)) { titleLabel.setForeground((Color)newValue); } else if ("descriptionForeground".equals(propertyName)) { descriptionPane.setForeground((Color)newValue); } else if ("iconPosition".equals(propertyName)) { resetLayout(h); } }