guibuttongroupcache.java
来自「基于java的3d开发库。对坐java3d的朋友有很大的帮助。」· Java 代码 · 共 97 行
JAVA
97 行
//===========================================================================//= Initial version: august 9 2007package vsdk.transition.gui;import java.util.ArrayList;public class GuiButtonGroupCache{ private ArrayList<GuiCommandCache> commandReferenceList; private GuiCache context; private String name; private boolean showText; private boolean showIcons; private boolean showTitle; private int direction; //private int side; public static final int HORIZONTAL = 1; public static final int VERTICAL = 2; public GuiButtonGroupCache(GuiCache parent) { commandReferenceList = new ArrayList<GuiCommandCache>(); context = parent; } public void setShowText(boolean f) { showText = f; } public void setShowIcons(boolean f) { showIcons = f; } public void setTitle(boolean f) { showTitle = f; } public void setDirection(int d) { direction = d; } public int getDirection() { return direction; } public boolean isShowTextSet() { return showText; } public boolean isShowIconsSet() { return showIcons; } public boolean isShowTitleSet() { return showTitle; } public ArrayList<GuiCommandCache> getCommands() { return commandReferenceList; } public void setName(String n) { name = n; } public String getName() { return name; } public void addCommandByName(String commandName) { GuiCommandCache command = context.getCommandByName(commandName); if ( command != null ) { commandReferenceList.add(command); } }}//===========================================================================//= EOF =//===========================================================================
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?