/** * Sets the icon to use for the header. It is generally recommended that this * be an image 64x64 pixels in size, and that the icon have no gaps at the top. * * @param icon may be null */ public void setIcon(Icon icon) { Icon old = getIcon(); this.icon = icon; firePropertyChange("icon", old, getIcon()); }
/** * Sets the icon to use for the header. It is generally recommended that this * be an image 64x64 pixels in size, and that the icon have no gaps at the top. * * @param icon may be null */ public void setIcon(Icon icon) { Icon old = getIcon(); this.icon = icon; firePropertyChange("icon", old, getIcon()); }
/** * Sets the icon to use for the header. It is generally recommended that this * be an image 64x64 pixels in size, and that the icon have no gaps at the top. * * @param icon may be null */ public void setIcon(Icon icon) { Icon old = getIcon(); this.icon = icon; firePropertyChange("icon", old, getIcon()); }
/** * Sets the icon to use for the header. It is generally recommended that this * be an image 64x64 pixels in size, and that the icon have no gaps at the top. * * @param icon may be null */ public void setIcon(Icon icon) { Icon old = getIcon(); this.icon = icon; firePropertyChange("icon", old, getIcon()); }
/** * Sets the icon to use for the header. It is generally recommended that this * be an image 64x64 pixels in size, and that the icon have no gaps at the top. * * @param icon may be null */ public void setIcon(Icon icon) { Icon old = getIcon(); this.icon = icon; firePropertyChange("icon", old, getIcon()); }
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); } }
/** * 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()); }
/** * 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()); }
/** * 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()); }
if (isUIInstallable(header.getIcon())) { header.setIcon(UIManager.getIcon("Header.defaultIcon"));
if (isUIInstallable(header.getIcon())) { header.setIcon(UIManager.getIcon("Header.defaultIcon"));
if (isUIInstallable(header.getIcon())) { header.setIcon(UIManager.getIcon("Header.defaultIcon"));
if (isUIInstallable(header.getIcon())) { header.setIcon(UIManager.getIcon("Header.defaultIcon"));
if (isUIInstallable(header.getIcon())) { header.setIcon(UIManager.getIcon("Header.defaultIcon"));