本文整理汇总了Java中javax.swing.plaf.InternalFrameUI类的典型用法代码示例。如果您正苦于以下问题:Java InternalFrameUI类的具体用法?Java InternalFrameUI怎么用?Java InternalFrameUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InternalFrameUI类属于javax.swing.plaf包,在下文中一共展示了InternalFrameUI类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
/**
* Maps {@code JInternalFrame.getUI()} through queue
*/
public InternalFrameUI getUI() {
return (runMapping(new MapAction<InternalFrameUI>("getUI") {
@Override
public InternalFrameUI map() {
return ((JInternalFrame) getSource()).getUI();
}
}));
}
示例2: setUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
/**
* 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);
}
});
}
示例3: setUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
/**
* 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);
}
示例4: updateUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
/**
* 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);
}
示例5: updateUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
/**
* 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);
}
示例6: setUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
/**
* 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);
}
示例7: updateUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
/**
* 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();
}
}
示例8: getUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
public InternalFrameUI getUI() {
return (InternalFrameUI) null;
}
示例9: setUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
public void setUI(InternalFrameUI ui) {
}
示例10: updateUIForFrame
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
void updateUIForFrame() {
setUI((InternalFrameUI) UIManager.getUI(this));
}
示例11: getUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
/**
* This method returns the UI used to represent the JInternalFrame.
*
* @return The UI used to represent the JInternalFrame.
*/
public InternalFrameUI getUI()
{
return (InternalFrameUI) ui;
}
示例12: getUI
import javax.swing.plaf.InternalFrameUI; //导入依赖的package包/类
/**
* Returns the UI object for this component.
*
* @return UI object for this component
*/
public InternalFrameUI getUI() {
return (InternalFrameUI) ui;
}