Methods Summary |
---|
protected java.awt.event.ComponentListener | createComponentListener()
if (UIManager.getBoolean("InternalFrame.useTaskBar")) {
return new ComponentHandler() {
public void componentResized(ComponentEvent e) {
if (frame != null && frame.isMaximum()) {
JDesktopPane desktop = (JDesktopPane)e.getSource();
for (Component comp : desktop.getComponents()) {
if (comp instanceof SynthDesktopPaneUI.TaskBar) {
frame.setBounds(0, 0,
desktop.getWidth(),
desktop.getHeight() - comp.getHeight());
frame.revalidate();
break;
}
}
}
// Update the new parent bounds for next resize, but don't
// let the super method touch this frame
JInternalFrame f = frame;
frame = null;
super.componentResized(e);
frame = f;
}
};
} else {
return super.createComponentListener();
}
|
protected javax.swing.JComponent | createNorthPane(javax.swing.JInternalFrame w)
titlePane = new SynthInternalFrameTitlePane(w);
titlePane.setName("InternalFrame.northPane");
return titlePane;
|
public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent b)
return new SynthInternalFrameUI((JInternalFrame)b);
|
public int | getComponentState(javax.swing.JComponent c)
return SynthLookAndFeel.getComponentState(c);
|
private javax.swing.plaf.synth.SynthContext | getContext(javax.swing.JComponent c, int state)
return SynthContext.getContext(SynthContext.class, c,
SynthLookAndFeel.getRegion(c), style, state);
|
public javax.swing.plaf.synth.SynthContext | getContext(javax.swing.JComponent c)
return getContext(c, getComponentState(c));
|
private javax.swing.plaf.synth.Region | getRegion(javax.swing.JComponent c)
return SynthLookAndFeel.getRegion(c);
|
public void | installDefaults()
frame.setLayout(internalFrameLayout = createLayoutManager());
updateStyle(frame);
|
protected void | installListeners()
super.installListeners();
frame.addPropertyChangeListener(this);
|
public void | paint(java.awt.Graphics g, javax.swing.JComponent c)
SynthContext context = getContext(c);
paint(context, g);
context.dispose();
|
protected void | paint(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g)
|
public void | paintBorder(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
context.getPainter().paintInternalFrameBorder(context,
g, x, y, w, h);
|
public void | propertyChange(java.beans.PropertyChangeEvent evt)
if (SynthLookAndFeel.shouldUpdateStyle(evt)) {
updateStyle((JInternalFrame)evt.getSource());
}
|
protected void | uninstallComponents()
if (frame.getComponentPopupMenu() instanceof UIResource) {
frame.setComponentPopupMenu(null);
}
super.uninstallComponents();
|
protected void | uninstallDefaults()
SynthContext context = getContext(frame, ENABLED);
style.uninstallDefaults(context);
context.dispose();
style = null;
if(frame.getLayout() == internalFrameLayout) {
frame.setLayout(null);
}
|
protected void | uninstallListeners()
frame.removePropertyChangeListener(this);
super.uninstallListeners();
|
public void | update(java.awt.Graphics g, javax.swing.JComponent c)
SynthContext context = getContext(c);
SynthLookAndFeel.update(context, g);
context.getPainter().paintInternalFrameBackground(context,
g, 0, 0, c.getWidth(), c.getHeight());
paint(context, g);
context.dispose();
|
private void | updateStyle(javax.swing.JComponent c)
SynthContext context = getContext(c, ENABLED);
SynthStyle oldStyle = style;
style = SynthLookAndFeel.updateStyle(context, this);
if (style != oldStyle) {
Icon frameIcon = frame.getFrameIcon();
if (frameIcon == null || frameIcon instanceof UIResource) {
frame.setFrameIcon(context.getStyle().getIcon(
context, "InternalFrame.icon"));
}
if (oldStyle != null) {
uninstallKeyboardActions();
installKeyboardActions();
}
}
context.dispose();
|