本文整理了Java中javax.swing.JInternalFrame.isSelected()
方法的一些代码示例,展示了JInternalFrame.isSelected()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.isSelected()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:isSelected
暂无
代码示例来源:origin: khuxtable/seaglass
/**
* {@inheritDoc}
*/
public boolean isInState(JComponent c) {
return c instanceof JInternalFrame && ((JInternalFrame) c).isSelected();
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
/**
* Gets the Selected attribute of the InternalFrameWindow object
*
* @return The Selected value
*/
public boolean isSelected() {
return frame.isSelected();
}
代码示例来源:origin: khuxtable/seaglass
/**
* {@inheritDoc}
*/
public boolean isInState(JComponent c) {
return c instanceof JInternalFrame && ((JInternalFrame) c).isSelected();
}
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
public boolean isFrameSelected() {
return frame.isSelected();
}
代码示例来源:origin: org.cytoscape/swing-application-impl
private JInternalFrame getSelectedFrame() {
synchronized (presentationContainerMap) {
for (JInternalFrame f : presentationContainerMap.values()) {
if (f.isSelected())
return f;
}
}
return null;
}
代码示例来源:origin: khuxtable/seaglass
/**
* {@inheritDoc}
*/
public boolean isInState(JComponent c) {
Component parent = c;
while (parent.getParent() != null) {
if (parent instanceof JInternalFrame) {
break;
}
parent = parent.getParent();
}
if (parent instanceof JInternalFrame) {
return !(((JInternalFrame) parent).isSelected());
}
return false;
}
}
代码示例来源:origin: khuxtable/seaglass
/**
* {@inheritDoc}
*/
public boolean isInState(JComponent c) {
Component parent = c;
while (parent.getParent() != null) {
if (parent instanceof JInternalFrame) {
break;
}
parent = parent.getParent();
}
if (parent instanceof JInternalFrame) {
return !(((JInternalFrame) parent).isSelected());
}
return false;
}
}
代码示例来源:origin: khuxtable/seaglass
/**
* {@inheritDoc}
*/
public boolean isInState(JComponent c) {
Component parent = c;
while (parent.getParent() != null) {
if (parent instanceof JInternalFrame) {
break;
}
parent = parent.getParent();
}
if (parent instanceof JInternalFrame) {
return !(((JInternalFrame) parent).isSelected());
}
return false;
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public/* synchronized */JInternalFrame getCurrentInternalFrame() {
JInternalFrame[] frames = getAllFrames();
JInternalFrame r = null;
for (int i = 0; i < frames.length; i++)
if (frames[i].isSelected()) {
r = frames[i];
break;
}
return r;
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
public void actionPerformed(ActionEvent e) {
try {
internalFrame.setSelected(!internalFrame.isSelected());
} catch (PropertyVetoException ignore) {}
}
}
代码示例来源:origin: antlr/antlrworks
public boolean isActive() {
if(useDesktop) {
return jInternalFrame != null && jInternalFrame.isSelected();
} else {
return jFrame.isActive();
}
}
代码示例来源:origin: khuxtable/seaglass
/**
* Get the state for the component.
*
* @param c the component.
*
* @return the state for the component.
*/
private int getComponentState(JComponent c) {
if (frame != null) {
if (frame.isSelected()) {
return SELECTED;
}
}
return SeaGlassLookAndFeel.getComponentState(c);
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void deactivateInternalFrame(JInternalFrame _f) {
if (!SwingUtilities.isEventDispatchThread()) throw new RuntimeException("Not in swing thread.");
checkInternalFrame(_f);
if (_f.isSelected()) {
try {
_f.setSelected(false);
} catch (PropertyVetoException ex) {}
}
}
代码示例来源:origin: robo-code/robocode
public EditWindow getActiveWindow() {
JInternalFrame[] frames = getDesktopPane().getAllFrames();
EditWindow editWindow = null;
if (frames != null) {
for (JInternalFrame frame : frames) {
if (frame.isSelected()) {
if (frame instanceof EditWindow) {
editWindow = (EditWindow) frame;
}
break;
}
}
}
return editWindow;
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public JInternalFrame getSelectedFrame() {
JInternalFrame r = null;
if (BuLib.swing() >= 1.2) {
r = super.getSelectedFrame();
} else {
JInternalFrame[] f = getNormalFrames();
for (int i = 0; i < f.length; i++)
if (f[i].isSelected()) {
r = f[i];
break;
}
}
return r;
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public Icon getIcon()
{
JInternalFrame f=getTop();
Icon i=null;
if((f!=null)&&f.isSelected())
i=UIManager.getIcon("StatusBar.selectedCornerIcon");
if(i==null) i=super.getIcon();
return i;
}
}
代码示例来源:origin: com.github.insubstantial/substance
public static boolean isPaintRootPaneActivated(JRootPane rp) {
if (isRootPaneAutoDeactivate(rp)) {
Component c = rp.getParent();
if (c instanceof JInternalFrame) {
return ((JInternalFrame)c).isSelected();
} else if (c instanceof Window) {
return ((Window)c).isActive();
} else {
return false;
}
} else {
return true;
}
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
public void mouseExited(MouseEvent e) {
button.getModel().setRollover(false);
if(!frame.isSelected()) {
button.setEnabled(false);
}
button.repaint();
}
}
代码示例来源:origin: antlr/antlrworks
public void setMainMenuBar(XJMainMenuBar menubar) {
this.mainMenuBar = menubar;
if(useDesktop) {
if(jInternalFrame.isSelected()) {
desktopFrame.setJMenuBar(mainMenuBar.getJMenuBar());
}
} else {
jFrame.setJMenuBar(mainMenuBar.getJMenuBar());
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void activateFrame(JInternalFrame _f)
{
if(DEBUG) FuLog.debug("BDM: activateFrame()");
/*GCJ-BEGIN*/
JInternalFrame current=desktop_.getSelectedFrame();
if(current!=_f)
{
if((current!=null)&¤t.isSelected())
{
try { current.setSelected(false); }
catch(PropertyVetoException ex) { }
}
desktop_.setSelectedFrame(_f);
}
/*GCJ-END*/
_f.moveToFront();
}
内容来源于网络,如有侵权,请联系作者删除!