javax.swing.JInternalFrame.getName()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中javax.swing.JInternalFrame.getName()方法的一些代码示例,展示了JInternalFrame.getName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.getName()方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:getName

JInternalFrame.getName介绍

暂无

代码示例

代码示例来源:origin: net.java.linoleum/application

@ConstructorProperties({"frame"})
public InternalFrameWrapper(final JInternalFrame frame) {
  final String name = frame.getName();
  setName(name == null?frame.getClass().getSimpleName():name);
  this.frame = frame;
}

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu

private void internalFrameAction(InternalFrameEvent _evt)
{
 int id=_evt.getID();
 String action=null;
 switch(id)
 {
  case InternalFrameEvent.INTERNAL_FRAME_ACTIVATED:   action="FILLE_ACTIVER";     break; 
  case InternalFrameEvent.INTERNAL_FRAME_CLOSED:      action="FILLE_FERMER";      break; 
  case InternalFrameEvent.INTERNAL_FRAME_ICONIFIED:   action="FILLE_ICONIFIER";   break; 
  case InternalFrameEvent.INTERNAL_FRAME_DEICONIFIED: action="FILLE_DEICONIFIER"; break; 
 }
 String frame=((JInternalFrame)_evt.getSource()).getName();
 // System.err.println("IFE: "+action+"("+frame+")");
 if((action!=null)&&(frame!=null))
 {
  if(frame.startsWith("if")) frame=frame.substring(2);
  actionPerformed(new ActionEvent
      (this,ActionEvent.ACTION_PERFORMED,
       action+"("+frame+")"));
 }
}

代码示例来源:origin: net.java.linoleum/application

private JInternalFrame getFrame(final JDesktopPane desktop, final URI uri) {
  for (final JInternalFrame c : desktop.getAllFrames()) {
    final String name = c.getName();
    if (name != null && name.equals(getName()) && c instanceof Frame) {
      if (((Frame) c).reuseFor(uri)) {
        return c;
      }
    }
  }
  return getFrame();
}

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu

public void daughter(String _action, String _name) {
 JInternalFrame[] frames = getMainPanel().getAllInternalFrames();
 JInternalFrame f = null;
 for (int i = 0; i < frames.length; i++) {
  String n = frames[i].getName();
  if (_name.equals(n) || ("if" + _name).equals(n) || _name.equals("*") || _name.equals(frames[i].getTitle())) {
   f = frames[i];
   try {
    if ("ACTIVER".equals(_action)) {
     if (f.isIcon()) f.setIcon(false);
     if (!f.isSelected()) f.setSelected(true);
    } else if ("FERMER".equals(_action)) {
     if (!f.isClosed()) f.setClosed(true);
    } else if ("ICONIFIER".equals(_action)) {
     if (!f.isIcon()) f.setIcon(true);
    } else if ("DEICONIFIER".equals(_action)) {
     if (f.isIcon()) f.setIcon(false);
    } else
     System.err.println("UNKNOWN SUB-ACTION: " + _action);
   } catch (PropertyVetoException ex) {}
  }
 }
 if (f == null) System.err.println("UNKNOWN FRAME: " + _name);
}

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu

System.err.println("No title for "+frames[i  ].getName());
 String         n=f.getName();
 if((n!=null)&&
   (f.getClientProperty("JInternalFrame.isPalette")!=Boolean.TRUE))

相关文章

JInternalFrame类方法