本文整理了Java中javax.swing.JInternalFrame.getClientProperty()
方法的一些代码示例,展示了JInternalFrame.getClientProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.getClientProperty()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:getClientProperty
暂无
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
protected boolean wasIcon(JInternalFrame _f)
{
return (_f.getClientProperty(HAS_BEEN_ICONIFIED_PROPERTY)==Boolean.TRUE);
}
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
protected boolean wasIcon(JInternalFrame f) {
return (f.getClientProperty(HAS_BEEN_ICONIFIED_PROPERTY) == Boolean.TRUE);
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public static boolean isPalette(JInternalFrame _internalFrame) {
return _internalFrame.getClientProperty("JInternalFrame.isPalette") == Boolean.TRUE;
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public static int getShortcut(JInternalFrame _f)
{
int r=0;
if(_f!=null)
{
Object o=_f.getClientProperty(SHORTCUT);
if(o!=null) r=((Integer)o).intValue();
}
return r;
}
代码示例来源:origin: stackoverflow.com
public static class OutlinePanel extends JPanel {
private JDesktopPane desktop;
public OutlinePanel(JDesktopPane desktop) {
this.desktop = desktop;
}
@Override
public boolean isOpaque() {
return false;
}
@Override
protected void paintComponent(Graphics g) {
JInternalFrame selected = desktop.getSelectedFrame();
Rectangle outline = (Rectangle) selected.getClientProperty("outlineBounds");
if (outline == null) return;
Rectangle bounds = SwingUtilities.convertRectangle(desktop, outline, this);
g.drawRect(bounds.x, bounds.y, bounds.width, bounds.height);
}
}
代码示例来源:origin: org.jclarion/clarion-runtime
@Override
public void internalFrameClosing(InternalFrameEvent e) {
if (jif.getClientProperty("shadow") == null) {
postAsUser(target, Event.CLOSEWINDOW, null);
}
}
代码示例来源:origin: org.fudaa.framework.fudaa/fudaa-common
public static List getFrameWithClientProperty(final BuCommonImplementation _impl, final String _s) {
final JInternalFrame[] frs = _impl.getAllInternalFrames();
final int nb = CtuluLibArray.getNbItem(frs);
final List qInternal = new ArrayList(nb);
for (int i = 0; i < nb; i++) {
if (frs[i].getClientProperty(_s) == Boolean.TRUE) {
qInternal.add(frs[i]);
}
}
return qInternal;
}
代码示例来源:origin: org.java.net.substance/substance
/**
* Updates the state of internal frames used in {@link JOptionPane}s.
*/
private void updateOptionPaneState() {
Object obj = frame.getClientProperty("JInternalFrame.messageType");
if (obj == null) {
// Don't change the closable state unless in an JOptionPane.
return;
}
if (frame.isClosable()) {
frame.setClosable(false);
}
}
代码示例来源:origin: com.github.insubstantial/substance
/**
* Updates the state of internal frames used in {@link JOptionPane}s.
*/
private void updateOptionPaneState() {
Object obj = frame.getClientProperty("JInternalFrame.messageType");
if (obj == null) {
// Don't change the closable state unless in an JOptionPane.
return;
}
if (frame.isClosable()) {
frame.setClosable(false);
}
}
代码示例来源:origin: org.java.net.substance/substance
@Override
public void removeNotify() {
super.removeNotify();
// fix for defect 211 - internal frames that are iconified
// programmatically should not uninstall the title panes.
boolean isAlive = ((this.frame.isIcon() && !this.frame.isClosed()) || Boolean.TRUE
.equals(frame.getClientProperty(ICONIFYING)));
if (!isAlive) {
this.uninstall();
}
}
代码示例来源:origin: com.github.insubstantial/substance
@Override
public void removeNotify() {
super.removeNotify();
// fix for defect 211 - internal frames that are iconified
// programmatically should not uninstall the title panes.
boolean isAlive = ((this.frame.isIcon() && !this.frame.isClosed()) || Boolean.TRUE
.equals(frame.getClientProperty(ICONIFYING)));
if (!isAlive) {
this.uninstall();
}
}
代码示例来源:origin: com.jtattoo/JTattoo
protected void installDefaults() {
super.installDefaults();
setFont(UIManager.getFont("InternalFrame.font"));
paletteTitleHeight = UIManager.getInt("InternalFrame.paletteTitleHeight");
paletteCloseIcon = UIManager.getIcon("InternalFrame.paletteCloseIcon");
iconIcon = UIManager.getIcon("InternalFrame.iconifyIcon");
minIcon = UIManager.getIcon("InternalFrame.minimizeIcon");
maxIcon = UIManager.getIcon("InternalFrame.maximizeIcon");
closeIcon = UIManager.getIcon("InternalFrame.closeIcon");
if (frame.getClientProperty("customTitlePanel") instanceof JPanel) {
setCustomizedTitlePanel((JPanel)frame.getClientProperty("customTitlePanel"));
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
/**
* Sets the Shaded attribute of the InternalFrameWindow object
*
* @param b The new Shaded value
*/
public void setShaded(boolean b) {
if (b == shaded) { return; }
if (b == true) {
Rectangle bounds = frame.getBounds();
Rectangle p = new Rectangle(bounds.x, bounds.y, bounds.width,
bounds.height);
frame.putClientProperty(SHADE_BOUNDS_PROPERTY, p);
frame.setBounds(p.x, p.y, p.width, frame.getMinimumSize().height - 2);
} else {
Point location = frame.getLocation();
Rectangle p = (Rectangle)frame.getClientProperty(SHADE_BOUNDS_PROPERTY);
frame.getDesktopPane().getDesktopManager().setBoundsForFrame(frame,
location.x, location.y, p.width, p.height);
frame.putClientProperty(SHADE_BOUNDS_PROPERTY, null);
}
shaded = b;
}
代码示例来源:origin: stackoverflow.com
JInternalFrame selected = desktop.getSelectedFrame();
if (selected == null) return;
Rectangle outline = (Rectangle) selected.getClientProperty("outlineBounds");
if (outline == null) return;
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
String n=f.getName();
if((n!=null)&&
(f.getClientProperty("JInternalFrame.isPalette")!=Boolean.TRUE))
内容来源于网络,如有侵权,请联系作者删除!