⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 region.java

📁 Mobile 应用程序使用 Java Micro Edition (Java ME) 平台
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
     * Thumb of the ScrollBar. The thumb is the region of the ScrollBar      * that gives a graphical depiction of what percentage of the View is      * currently visible. To bind a style to this <code>Region</code> use      * the name <code>ScrollBarThumb</code>.     */    public static final Region SCROLL_BAR_THUMB = new Region("ScrollBarThumb");    /**     * ScrollPane region. To bind a style to this <code>Region</code> use      * the name <code>ScrollPane</code>.     */    public static final Region SCROLL_PANE = new Region("ScrollPane",                                                        "ScrollPaneUI");    /**     * Separator region. To bind a style to this <code>Region</code> use      * the name <code>Separator</code>.      */    public static final Region SEPARATOR = new Region("Separator",                                                      "SeparatorUI");    /**     * Slider region. To bind a style to this <code>Region</code> use      * the name <code>Slider</code>.     */    public static final Region SLIDER = new Region("Slider", "SliderUI");    /**     * Track of the Slider. To bind a style to this <code>Region</code> use      * the name <code>SliderTrack</code>.     */    public static final Region SLIDER_TRACK = new Region("SliderTrack");    /**     * Thumb of the Slider. The thumb of the Slider identifies the current      * value. To bind a style to this <code>Region</code> use the name      * <code>SliderThumb</code>.     */    public static final Region SLIDER_THUMB = new Region("SliderThumb");    /**     * Spinner region. To bind a style to this <code>Region</code> use the name     * <code>Spinner</code>.     */    public static final Region SPINNER = new Region("Spinner", "SpinnerUI");    /**     * SplitPane region. To bind a style to this <code>Region</code> use the name     * <code>SplitPane</code>.     */    public static final Region SPLIT_PANE = new Region("SplitPane",                                                      "SplitPaneUI");    /**     * Divider of the SplitPane. To bind a style to this <code>Region</code>      * use the name <code>SplitPaneDivider</code>.     */    public static final Region SPLIT_PANE_DIVIDER = new Region(                                        "SplitPaneDivider");    /**     * TabbedPane region. To bind a style to this <code>Region</code> use      * the name <code>TabbedPane</code>.     */    public static final Region TABBED_PANE = new Region("TabbedPane",                                                        "TabbedPaneUI");    /**     * Region of a TabbedPane for one tab. To bind a style to this      * <code>Region</code> use the name <code>TabbedPaneTab</code>.     */    public static final Region TABBED_PANE_TAB = new Region("TabbedPaneTab");    /**     * Region of a TabbedPane containing the tabs. To bind a style to this      * <code>Region</code> use the name <code>TabbedPaneTabArea</code>.     */    public static final Region TABBED_PANE_TAB_AREA =                                 new Region("TabbedPaneTabArea");    /**     * Region of a TabbedPane containing the content. To bind a style to this      * <code>Region</code> use the name <code>TabbedPaneContent</code>.     */    public static final Region TABBED_PANE_CONTENT =                                 new Region("TabbedPaneContent");    /**     * Table region. To bind a style to this <code>Region</code> use      * the name <code>Table</code>.     */    public static final Region TABLE = new Region("Table", "TableUI");    /**     * TableHeader region. To bind a style to this <code>Region</code> use      * the name <code>TableHeader</code>.     */    public static final Region TABLE_HEADER = new Region("TableHeader",                                                         "TableHeaderUI");    /**     * TextArea region. To bind a style to this <code>Region</code> use      * the name <code>TextArea</code>.     */    public static final Region TEXT_AREA = new Region("TextArea",                                                      "TextAreaUI");    /**     * TextField region. To bind a style to this <code>Region</code> use      * the name <code>TextField</code>.     */    public static final Region TEXT_FIELD = new Region("TextField",                                                       "TextFieldUI");    /**     * TextPane region. To bind a style to this <code>Region</code> use      * the name <code>TextPane</code>.     */    public static final Region TEXT_PANE = new Region("TextPane",                                                      "TextPaneUI");    /**     * ToggleButton region. To bind a style to this <code>Region</code> use      * the name <code>ToggleButton</code>.     */    public static final Region TOGGLE_BUTTON = new Region("ToggleButton",                                                          "ToggleButtonUI");    /**     * ToolBar region. To bind a style to this <code>Region</code> use      * the name <code>ToolBar</code>.     */    public static final Region TOOL_BAR = new Region("ToolBar", "ToolBarUI");    /**     * Region of the ToolBar containing the content. To bind a style to this      * <code>Region</code> use the name <code>ToolBarContent</code>.     */    public static final Region TOOL_BAR_CONTENT = new Region("ToolBarContent");    /**     * Region for the Window containing the ToolBar. To bind a style to this      * <code>Region</code> use the name <code>ToolBarDragWindow</code>.     */    public static final Region TOOL_BAR_DRAG_WINDOW = new Region(                                        "ToolBarDragWindow", null, false);    /**     * ToolTip region. To bind a style to this <code>Region</code> use      * the name <code>ToolTip</code>.     */    public static final Region TOOL_TIP = new Region("ToolTip", "ToolTipUI");    /**     * ToolBar separator region. To bind a style to this <code>Region</code> use      * the name <code>ToolBarSeparator</code>.     */    public static final Region TOOL_BAR_SEPARATOR = new Region(                          "ToolBarSeparator", "ToolBarSeparatorUI");    /**     * Tree region. To bind a style to this <code>Region</code> use the name      * <code>Tree</code>.     */    public static final Region TREE = new Region("Tree", "TreeUI");    /**     * Region of the Tree for one cell. To bind a style to this      * <code>Region</code> use the name <code>TreeCell</code>.     */    public static final Region TREE_CELL = new Region("TreeCell");    /**     * Viewport region. To bind a style to this <code>Region</code> use      * the name <code>Viewport</code>.     */    public static final Region VIEWPORT = new Region("Viewport", "ViewportUI");    private String name;    private boolean subregion;    static Region getRegion(JComponent c) {        return (Region)uiToRegionMap.get(c.getUIClassID());    }    static void registerUIs(UIDefaults table) {        for (Object key : uiToRegionMap.keySet()) {            table.put(key, "javax.swing.plaf.synth.SynthLookAndFeel");        }    }    Region(String name) {        this(name, null, true);    }    Region(String name, String ui) {        this(name, ui, false);    }    /**     * Creates a Region with the specified name. This should only be     * used if you are creating your own <code>JComponent</code> subclass     * with a custom <code>ComponentUI</code> class.     *     * @param name Name of the region     * @param ui String that will be returned from     *           <code>component.getUIClassID</code>. This will be null     *           if this is a subregion.     * @param subregion Whether or not this is a subregion.     */    protected Region(String name, String ui, boolean subregion) {        if (name == null) {            throw new NullPointerException("You must specify a non-null name");        }        this.name = name;        if (ui != null) {            uiToRegionMap.put(ui, this);        }        this.subregion = subregion;    }    /**     * Returns true if the Region is a subregion of a Component, otherwise     * false. For example, <code>Region.BUTTON</code> corresponds do a     * <code>Component</code> so that <code>Region.BUTTON.isSubregion()</code>     * returns false.     *     * @return true if the Region is a subregion of a Component.     */    public boolean isSubregion() {        return subregion;    }    /**     * Returns the name of the region.     *     * @return name of the Region.     */    public String getName() {        return name;    }    /**     * Returns the name, in lowercase.     */    String getLowerCaseName() {        synchronized(lowerCaseNameMap) {            String lowerCaseName = (String)lowerCaseNameMap.get(this);            if (lowerCaseName == null) {                lowerCaseName = getName().toLowerCase();                lowerCaseNameMap.put(this, lowerCaseName);            }            return lowerCaseName;        }    }    /**     * Returns the name of the Region.     *     * @return name of the Region.     */    public String toString() {        return name;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -