/** * Updates state dependant upon the Window's active state. * * @param isActive * if <code>true</code>, the window is in active state. */ void setActive(boolean isActive) { if (getRootPane() != null) { this.getRootPane().repaint(); } }
/** * Returns the decoration style of the <code>JRootPane</code>. * * @return Decoration style of the <code>JRootPane</code>. */ protected int getWindowDecorationStyle() { return this.getRootPane().getWindowDecorationStyle(); }
/** * Updates state dependant upon the Window's active state. * * @param isActive * if <code>true</code>, the window is in active state. */ private void setActive(boolean isActive) { this.getRootPane().repaint(); }
/** * Returns the decoration style of the <code>JRootPane</code>. * * @return Decoration style of the <code>JRootPane</code>. */ protected int getWindowDecorationStyle() { return this.getRootPane().getWindowDecorationStyle(); }
public DecorationAreaType getThisDecorationType() { DecorationAreaType dat = SubstanceLookAndFeel.getDecorationType(this); if (dat == DecorationAreaType.PRIMARY_TITLE_PANE) { return SubstanceCoreUtilities.isPaintRootPaneActivated(getRootPane()) ? DecorationAreaType.PRIMARY_TITLE_PANE : DecorationAreaType.PRIMARY_TITLE_PANE_INACTIVE; } else if (dat == DecorationAreaType.SECONDARY_TITLE_PANE) { return SubstanceCoreUtilities.isPaintRootPaneActivated(getRootPane()) ? DecorationAreaType.SECONDARY_TITLE_PANE : DecorationAreaType.SECONDARY_TITLE_PANE_INACTIVE; } else { return dat; } }
/** * Synchronizes the tooltip of the close button. */ protected void syncCloseButtonTooltip() { if (SubstanceCoreUtilities.isRootPaneModified(this.getRootPane())) { this.closeButton.setToolTipText(SubstanceCoreUtilities .getResourceBundle(rootPane).getString("SystemMenu.close") + " [" + SubstanceCoreUtilities.getResourceBundle(rootPane) .getString("Tooltip.contentsNotSaved") + "]"); } else { this.closeButton.setToolTipText(SubstanceCoreUtilities .getResourceBundle(rootPane).getString("SystemMenu.close")); } this.closeButton.repaint(); }
/** * Synchronizes the tooltip of the close button. */ protected void syncCloseButtonTooltip() { if (SubstanceCoreUtilities.isRootPaneModified(this.getRootPane())) { this.closeButton.setToolTipText(SubstanceCoreUtilities .getResourceBundle(rootPane).getString("SystemMenu.close") + " [" + SubstanceCoreUtilities.getResourceBundle(rootPane) .getString("Tooltip.contentsNotSaved") + "]"); } else { this.closeButton.setToolTipText(SubstanceCoreUtilities .getResourceBundle(rootPane).getString("SystemMenu.close")); } this.closeButton.repaint(); }
@Override public void propertyChange(PropertyChangeEvent pce) { String name = pce.getPropertyName(); // Frame.state isn't currently bound. if ("resizable".equals(name) || "state".equals(name)) { Frame frame = SubstanceTitlePane.this.getFrame(); if (frame != null) { SubstanceTitlePane.this.setState(frame.getExtendedState(), true); } if ("resizable".equals(name)) { SubstanceTitlePane.this.getRootPane().repaint(); } } else { if ("title".equals(name)) { SubstanceTitlePane.this.repaint(); SubstanceTitlePane.this.setToolTipText((String) pce .getNewValue()); } else if ("componentOrientation".equals(name)) { revalidate(); repaint(); } else if ("iconImage".equals(name)) { updateAppIcon(); revalidate(); repaint(); } } } }
public void propertyChange(PropertyChangeEvent pce) { String name = pce.getPropertyName(); // Frame.state isn't currently bound. if ("resizable".equals(name) || "state".equals(name)) { Frame frame = SubstanceTitlePane.this.getFrame(); if (frame != null) { SubstanceTitlePane.this.setState(frame.getExtendedState(), true); } if ("resizable".equals(name)) { SubstanceTitlePane.this.getRootPane().repaint(); } } else { if ("title".equals(name)) { SubstanceTitlePane.this.repaint(); SubstanceTitlePane.this.setToolTipText((String) pce .getNewValue()); } else if ("componentOrientation" == name) { revalidate(); repaint(); } else if ("iconImage" == name) { updateAppIcon(); revalidate(); repaint(); } } } }
JRootPane rootPane = this.getRootPane(); Window window = this.getWindow(); boolean leftToRight = (window == null) ? rootPane
JRootPane rootPane = this.getRootPane(); Window window = this.getWindow(); boolean leftToRight = (window == null) ? rootPane
final JRootPane rootPane = this.getRootPane();
final JRootPane rootPane = this.getRootPane();
this.setState(this.getFrame().getExtendedState()); final JRootPane rootPane = this.getRootPane(); Window window = this.getWindow(); boolean leftToRight = (window == null) ? rootPane
this.setState(this.getFrame().getExtendedState()); final JRootPane rootPane = this.getRootPane(); Window window = this.getWindow(); boolean leftToRight = (window == null) ? rootPane
@Override public void layoutContainer(Container c) { boolean leftToRight = (SubstanceTitlePane.this.window == null) ? SubstanceTitlePane.this .getRootPane().getComponentOrientation().isLeftToRight() : SubstanceTitlePane.this.window.getComponentOrientation() .isLeftToRight();
public void layoutContainer(Container c) { boolean leftToRight = (SubstanceTitlePane.this.window == null) ? SubstanceTitlePane.this .getRootPane().getComponentOrientation().isLeftToRight() : SubstanceTitlePane.this.window.getComponentOrientation() .isLeftToRight();