/** * Maps {@code JInternalFrame.getUI()} through queue */ public InternalFrameUI getUI() { return (runMapping(new MapAction<InternalFrameUI>("getUI") { @Override public InternalFrameUI map() { return ((JInternalFrame) getSource()).getUI(); } })); }
/** * Maps {@code JInternalFrame.setUI(InternalFrameUI)} through queue */ public void setUI(final InternalFrameUI internalFrameUI) { runMapping(new MapVoidAction("setUI") { @Override public void map() { ((JInternalFrame) getSource()).setUI(internalFrameUI); } }); }
/** * This method is used to set the UI responsible for the JInternalFrame. * * @param ui The UI responsible for the JInternalFrame. */ public void setUI(InternalFrameUI ui) { // We must temporarily go into init mode so that the UI can directly // manipulate the JInternalFrame. boolean old = isRootPaneCheckingEnabled(); setRootPaneCheckingEnabled(false); super.setUI(ui); setRootPaneCheckingEnabled(old); }
/** * This method resets the UI to the Look and Feel defaults. */ public void updateUI() { // We must go into the init stage when updating the UI, so the UI can // set layout and components directly on the internal frame, not its // content pane. boolean old = isRootPaneCheckingEnabled(); setRootPaneCheckingEnabled(false); setUI((InternalFrameUI) UIManager.getUI(this)); setRootPaneCheckingEnabled(old); }
/** * Sets the UI object for this component. * * @param ui the UI object to set */ public void setUI(final InternalFrameUI ui) { // setUI() from super (JComponent) should always be called // strange manipulations with 'enabled', but they are necessary boolean enabled = isRootPaneCheckingEnabled(); setRootPaneCheckingEnabled(false); super.setUI(ui); setRootPaneCheckingEnabled(enabled); }
/** * Updates <code>UI's</code> for both <code>JInternalFrame</code> * and <code>JDesktopIcon</code>. */ @Override public void updateUI() { setUI((InternalFrameUI) UIManager.getUI(this)); if (getDesktopIcon() != null) { getDesktopIcon().updateUIForIcon(); } }
public InternalFrameUI getUI() { return (InternalFrameUI) null; }
public void setUI(InternalFrameUI ui) { }
void updateUIForFrame() { setUI((InternalFrameUI) UIManager.getUI(this)); }
/** * This method returns the UI used to represent the JInternalFrame. * * @return The UI used to represent the JInternalFrame. */ public InternalFrameUI getUI() { return (InternalFrameUI) ui; }
/** * Returns the UI object for this component. * * @return UI object for this component */ public InternalFrameUI getUI() { return (InternalFrameUI) ui; }