java.awt.Button.getName()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(148)

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

Button.getName介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

btnCube = new TextButton("Cube", btnStyle);
btnCube.setName("cube");
btnCube.addListener(commonListener);
toolButtons.add(btnCube);

//...
void setSelectedTool(Button button){
  WorldController.element = button.getName();
}

代码示例来源:origin: org.jacorb/jacorb

private void _actionShowConsole() {
  add(getConsole(), "Center");
  getButtonPanel().remove(getShowButton());
  getButtonPanel().add(getHideButton(), getHideButton().getName());
  getButtonPanel().add(getClearButton(), getClearButton().getName());
  
  java.awt.Component c = this;
  while ((c = c.getParent()) != null) if (c instanceof java.awt.Frame) break;
  c.setSize(c.getBounds().width, c.getBounds().height+100);
  c.validate();
}
synchronized public void _printMessage(String text) {

代码示例来源:origin: org.jacorb/jacorb

/**
 * Return the ButtonPanel property value.
 * @return java.awt.Panel
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getButtonPanel() {
  if (ivjButtonPanel == null) {
    try {
    ivjButtonPanel = new java.awt.Panel();
    ivjButtonPanel.setName("ButtonPanel");
    ivjButtonPanel.setLayout(getButtonPanelFlowLayout());
    getButtonPanel().add(getHideButton(), getHideButton().getName());
    getButtonPanel().add(getClearButton(), getClearButton().getName());
    // user code begin {1}
    // user code end
    } catch (java.lang.Throwable ivjExc) {
    // user code begin {2}
    // user code end
    handleException(ivjExc);
    }
  };
  return ivjButtonPanel;
}
/**

代码示例来源:origin: org.jacorb/jacorb

/**
 * Initialize the class.
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initialize() {
  // user code begin {1}
  // user code end
  setName("CloseButtonPanel");
  setLayout(getCloseButtonPanelFlowLayout());
  setBackground(java.awt.SystemColor.control);
  setSize(427, 34);
  add(getCloseButton(), getCloseButton().getName());
  initConnections();
  // user code begin {2}
  // user code end
}
/**

代码示例来源:origin: org.jacorb/jacorb

private void _actionHideConsole() {
  int height = getBounds().height;
  
  remove(getConsole());
  getButtonPanel().remove(getHideButton());
  getButtonPanel().remove(getClearButton());
  getButtonPanel().add(getShowButton(), getShowButton().getName());
  
  java.awt.Component c = this;
  while ((c = c.getParent()) != null) if (c instanceof java.awt.Frame) break;
  c.setSize(c.getBounds().width, c.getBounds().height-height+33);
  c.validate();
}
private void _actionShowConsole() {

代码示例来源:origin: org.jacorb/jacorb

/**
 * Initialize the class.
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initialize() {
// user code begin {1}
// user code end
setName("QueuePanel");
setLayout(null);
setBackground(java.awt.SystemColor.control);
setSize(90, 200);
add(getLabel1(), getLabel1().getName());
add(getLabel2(), getLabel2().getName());
add(getFillLevelBar(), getFillLevelBar().getName());
add(getDetailsButton(), getDetailsButton().getName());
initConnections();
// user code begin {2}
// user code end
}
void _init(DetailsButtonController _controller) {

代码示例来源:origin: org.jacorb/jacorb

/**
 * Initialize the class.
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initialize() {
// user code begin {1}
// user code end
setName("AOMPanel");
setLayout(null);
setBackground(java.awt.SystemColor.control);
setSize(90, 200);
add(getLabel1(), getLabel1().getName());
add(getLabel2(), getLabel2().getName());
add(getFillLevelBar(), getFillLevelBar().getName());
add(getDetailsButton(), getDetailsButton().getName());
initConnections();
// user code begin {2}
// user code end
}
void _init(DetailsButtonController _controller) {

代码示例来源:origin: org.jacorb/jacorb

/**
 * Initialize the class.
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initialize() {
  // user code begin {1}
  // user code end
  setName("ConsolePanel");
  setLayout(getConsolePanelBorderLayout());
  setBackground(java.awt.SystemColor.control);
  setSize(426, 240);
  add(getButtonPanel(), "South");
  add(getConsole(), "Center");
  add(getLeftPanel(), "West");
  add(getRightPanel(), "East");
  initConnections();
  // user code begin {2}
  remove(getConsole());
  getButtonPanel().remove(getHideButton());
  getButtonPanel().remove(getClearButton());
  getButtonPanel().add(getShowButton(), getShowButton().getName());	
  // user code end
}
  /**

相关文章