本文整理了Java中javax.swing.JInternalFrame.isIcon()
方法的一些代码示例,展示了JInternalFrame.isIcon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.isIcon()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:isIcon
暂无
代码示例来源:origin: pentaho/mondrian
public void actionPerformed(ActionEvent evt) {
try {
if (jf.isIcon()) {
jf.setIcon(false);
} else {
jf.setSelected(true);
}
} catch (Exception ex) {
LOGGER.error("queryMenuItem", ex);
}
}
});
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = MINIMIZE_ALL_JSDOC)
public void minimizeAll() throws PropertyVetoException {
for (JInternalFrame f : getAllFrames()) {
if (f.isIconifiable() && !f.isIcon()) {
f.setIcon(true);
}
}
}
代码示例来源:origin: pentaho/mondrian
public void actionPerformed(ActionEvent evt) {
try {
if (jf.isIcon()) {
jf.setIcon(false);
} else {
jf.setSelected(true);
}
} catch (Exception ex) {
LOGGER.error("queryMenuItem", ex);
}
}
});
代码示例来源:origin: pentaho/mondrian
public void actionPerformed(ActionEvent evt) {
try {
if (schemaFrame.isIcon()) {
schemaFrame.setIcon(false);
} else {
schemaFrame.setSelected(true);
}
} catch (Exception ex) {
LOGGER.error("schemaMenuItem", ex);
}
}
});
代码示例来源:origin: pentaho/mondrian
private void minimizeMenuItemActionPerformed(
ActionEvent evt)
{
try {
for (JInternalFrame sf : getAllFrames()) {
if (sf != null && !sf.isIcon()) {
sf.setIcon(true);
}
}
} catch (Exception ex) {
LOGGER.error("minimizeMenuItemActionPerformed", ex);
// do nothing
}
}
代码示例来源:origin: pentaho/mondrian
int x = 0, y = 0;
for (JInternalFrame sf : getAllFrames()) {
if (sf != null && !sf.isIcon()) {
sf.setMaximum(false);
sf.moveToFront();
代码示例来源:origin: pentaho/mondrian
private void cascadeMenuItemActionPerformed(
ActionEvent evt)
{
try {
int sfi = 1;
for (JInternalFrame sf : getAllFrames()) {
if (sf != null && !sf.isIcon()) {
sf.setMaximum(false);
sf.setLocation(30 * sfi, 30 * sfi);
sf.moveToFront();
sf.setSelected(true);
sfi++;
}
}
} catch (Exception ex) {
LOGGER.error("cascadeMenuItemActionPerformed", ex);
// do nothing
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void propertyChange(PropertyChangeEvent _evt) {
if (Boolean.TRUE.equals(_evt.getNewValue()) && "selected".equals(_evt.getPropertyName())) {
final JInternalFrame fintern = (JInternalFrame) _evt.getSource();
if (fintern.isIcon()) {
try {
fintern.setIcon(false);
} catch (PropertyVetoException ex) {}
}
}
}
});
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (evt.getSource() instanceof JInternalFrame && JInternalFrame.IS_MAXIMUM_PROPERTY.equals(evt.getPropertyName())) {
JInternalFrame source = (JInternalFrame) evt.getSource();
if (Boolean.FALSE.equals(evt.getOldValue()) && Boolean.TRUE.equals(evt.getNewValue())) {
executeEvent(windowMaximized, evt);
} else if (Boolean.TRUE.equals(evt.getOldValue()) && Boolean.FALSE.equals(evt.getNewValue())
&& !source.isIcon()) {
executeEvent(windowRestored, evt);
}
}
}
}
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public void setIconified(boolean iconified) {
boolean old = internalFrame.isIcon();
if (old == iconified)
return;
try {
internalFrame.setIcon(iconified);
} catch (PropertyVetoException e) {
throw new RuntimeException(e);
}
firePropertyChangeEvent("iconified", old, iconified);
}
代码示例来源:origin: joel-costigliola/assertj-swing
@RunsInCurrentThread
private static void checkShowingOrIconified(@Nonnull JInternalFrame internalFrame) {
if (!internalFrame.isIcon()) {
checkShowing(internalFrame);
}
}
代码示例来源:origin: joel-costigliola/assertj-swing
@RunsInCurrentThread
static boolean isIconified(@Nonnull JInternalFrame frame) {
if (frame.isMaximum()) {
return false;
}
return frame.isIcon();
}
代码示例来源:origin: org.java.net.substance/substance
@Override
protected void enableActions() {
super.enableActions();
if (!this.frame.isIcon()) {
if (this.maxButton != null)
this.maxButton.setEnabled(this.maximizeAction.isEnabled()
|| this.restoreAction.isEnabled());
if (this.iconButton != null)
this.iconButton.setEnabled(this.iconifyAction.isEnabled());
}
}
代码示例来源:origin: com.github.insubstantial/substance
@Override
protected void enableActions() {
super.enableActions();
if (!this.frame.isIcon()) {
if (this.maxButton != null)
this.maxButton.setEnabled(this.maximizeAction.isEnabled()
|| this.restoreAction.isEnabled());
if (this.iconButton != null)
this.iconButton.setEnabled(this.iconifyAction.isEnabled());
}
}
代码示例来源: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: joel-costigliola/assertj-swing
@RunsInCurrentThread
@Nonnull private static Pair<Container, Point> findMaximizeLocation(@Nonnull JInternalFrame internalFrame) {
Container clickTarget = internalFrame.isIcon() ? internalFrame.getDesktopIcon() : internalFrame;
Point location = maximizeButtonLocation(checkNotNull(clickTarget));
return Pair.of(clickTarget, location);
}
代码示例来源: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: khuxtable/seaglass
/**
* Show the system menu.
*/
private void showSystemMenu() {
Insets insets = frame.getInsets();
if (!frame.isIcon()) {
systemPopupMenu.show(frame, insets.left, getY() + getHeight());
} else {
systemPopupMenu.show(menuButton, getX() - insets.left - insets.right,
getY() - systemPopupMenu.getPreferredSize().height - insets.bottom - insets.top);
}
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = MAXIMIZE_ALL_JSDOC)
public void maximizeAll() throws PropertyVetoException {
for (JInternalFrame f : getAllFrames()) {
if (f.isIcon()) {
f.setIcon(false);
}
if (f.isMaximizable()) {
f.setMaximum(true);
}
}
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = RESTORE_ALL_JSDOC)
public void restoreAll() throws PropertyVetoException {
for (JInternalFrame f : getAllFrames()) {
if (f.isIcon()) {
f.setIcon(false);
}
if (f.isMaximum()) {
f.setMaximum(false);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!