java.lang.Objectjavax.swing.plaf.synth.Region
public class Region
     Swing 组件的独特呈现区域。一个组件可以支持一个或多个 region。特定组件 region 由此类中的类型安全枚举定义。
 通常使用 region 作为标识将应用特殊样式的 Component 和区域的方法。Synth 的文件格式允许基于 Region 的名称来绑定样式。该名称源自常量的字段名称: 
SPLIT_PANE 
  Region,应该使用 
  SplitPane。以下展示了一个自定义 
  SynthStyleFactory,它为分隔窗格返回一个特定样式: 
  
    public SynthStyle getStyle(JComponent c, Region id) {
        if (id == Region.SPLIT_PANE) {
            return splitPaneStyle;
        }
        ...
    }
  以下 
  xml 实现了相同的目标: 
  <style id="splitPaneStyle"> ... </style> <bind style="splitPaneStyle" type="region" key="SplitPane"/>
| 字段摘要 | |
|---|---|
 static Region |  
     ARROW_BUTTON ArrowButton 是特殊类型的按钮,也呈现了一个方向指示器(通常是一个箭头)。  |  
    
 static Region |  
     BUTTON Button 的 region。  |  
    
 static Region |  
     CHECK_BOX CheckBox 的 region。  |  
    
 static Region |  
     CHECK_BOX_MENU_ITEM CheckBoxMenuItem 的 region。  |  
    
 static Region |  
     COLOR_CHOOSER ColorChooser 的 region。  |  
    
 static Region |  
     COMBO_BOX ComboBox 的 region。  |  
    
 static Region |  
     DESKTOP_ICON DesktopIcon 的 region。  |  
    
 static Region |  
     DESKTOP_PANE DesktopPane 的 region。  |  
    
 static Region |  
     EDITOR_PANE EditorPane 的 region。  |  
    
 static Region |  
     FILE_CHOOSER FileChooser 的 region。  |  
    
 static Region |  
     FORMATTED_TEXT_FIELD FormattedTextField 的 region。  |  
    
 static Region |  
     INTERNAL_FRAME InternalFrame 的 region。  |  
    
 static Region |  
     INTERNAL_FRAME_TITLE_PANE InternalFrame 的 TitlePane。  |  
    
 static Region |  
     LABEL Label 的 region。  |  
    
 static Region |  
     LIST List 的 region。  |  
    
 static Region |  
     MENU Menu 的 region。  |  
    
 static Region |  
     MENU_BAR MenuBar 的 region。  |  
    
 static Region |  
     MENU_ITEM MenuItem 的 region。  |  
    
 static Region |  
     MENU_ITEM_ACCELERATOR MenuItem 的加速器 region。  |  
    
 static Region |  
     OPTION_PANE OptionPane 的 region。  |  
    
 static Region |  
     PANEL Panel 的 region。  |  
    
 static Region |  
     PASSWORD_FIELD PasswordField 的 region。  |  
    
 static Region |  
     POPUP_MENU PopupMenu 的 region。  |  
    
 static Region |  
     POPUP_MENU_SEPARATOR PopupMenuSeparator 的 region。  |  
    
 static Region |  
     PROGRESS_BAR ProgressBar 的 region。  |  
    
 static Region |  
     RADIO_BUTTON RadioButton 的 region。  |  
    
 static Region |  
     RADIO_BUTTON_MENU_ITEM RegionButtonMenuItem 的 region。  |  
    
 static Region |  
     ROOT_PANE RootPane 的 region。  |  
    
 static Region |  
     SCROLL_BAR ScrollBar 的 region。  |  
    
 static Region |  
     SCROLL_BAR_THUMB ScrollBar 的 thumb。  |  
    
 static Region |  
     SCROLL_BAR_TRACK ScrollBar 的滑道。  |  
    
 static Region |  
     SCROLL_PANE ScrollPane 的 region。  |  
    
 static Region |  
     SEPARATOR Separator 的 region。  |  
    
 static Region |  
     SLIDER Slider 的 region。  |  
    
 static Region |  
     SLIDER_THUMB 滑块的 thumb。  |  
    
 static Region |  
     SLIDER_TRACK Slider 的滑道。  |  
    
 static Region |  
     SPINNER Spinner 的 region。  |  
    
 static Region |  
     SPLIT_PANE SplitPane 的 region。  |  
    
 static Region |  
     SPLIT_PANE_DIVIDER SplitPane 的分隔器。  |  
    
 static Region |  
     TABBED_PANE TabbedPane 的 region。  |  
    
 static Region |  
     TABBED_PANE_CONTENT 包含内容的 TabbedPane 的 region。  |  
    
 static Region |  
     TABBED_PANE_TAB 某一选项卡的 TabbedPane 的 region。  |  
    
 static Region |  
     TABBED_PANE_TAB_AREA 包含选项卡的 TabbedPane 的 region。  |  
    
 static Region |  
     TABLE Table 的 region。  |  
    
 static Region |  
     TABLE_HEADER TableHeader 的 region。  |  
    
 static Region |  
     TEXT_AREA TextArea 的 region。  |  
    
 static Region |  
     TEXT_FIELD TextField 的 region。  |  
    
 static Region |  
     TEXT_PANE TextPane 的 region。  |  
    
 static Region |  
     TOGGLE_BUTTON ToggleButton 的 region。  |  
    
 static Region |  
     TOOL_BAR ToolBar 的 region。  |  
    
 static Region |  
     TOOL_BAR_CONTENT 包含内容的 ToolBar 的 region。  |  
    
 static Region |  
     TOOL_BAR_DRAG_WINDOW 包含 ToolBar 的 Window 的 region。  |  
    
 static Region |  
     TOOL_BAR_SEPARATOR ToolBar 分隔器的 region。  |  
    
 static Region |  
     TOOL_TIP ToolTip 的 region。  |  
    
 static Region |  
     TREE Tree 的 region。  |  
    
 static Region |  
     TREE_CELL 用于某一单元格的 Tree 的 region。  |  
    
 static Region |  
     VIEWPORT Viewport 的 region。  |  
    
| 构造方法摘要 | |
|---|---|
 protected  |  
     Region(String name, String ui, boolean subregion) 创建具有指定名称的 Region。  |  
    
| 方法摘要 | |
|---|---|
  String |  
     getName() 返回 region 的名称。  |  
    
  boolean |  
     isSubregion() 如果 Region 是 Component 的子 region,则返回 true,否则返回 false。  |  
    
  String |  
     toString() 返回 Region 的名称。  |  
    
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |  
    
| 字段详细信息 | 
|---|
public static final Region ARROW_BUTTON
Region,使用名称 
    ArrowButton。 
    
public static final Region BUTTON
Region,使用名称 
    Button。 
    
public static final Region CHECK_BOX
Region,使用名称 
    CheckBox。 
    
public static final Region CHECK_BOX_MENU_ITEM
Region,使用名称 
    CheckBoxMenuItem。 
    
public static final Region COLOR_CHOOSER
Region,使用名称 
    ColorChooser。 
    
public static final Region COMBO_BOX
Region,使用名称 
    ComboBox。 
    
public static final Region DESKTOP_PANE
Region,使用名称 
    DesktopPane。 
    
public static final Region DESKTOP_ICON
Region,使用名称 
    DesktopIcon。 
    
public static final Region EDITOR_PANE
Region,使用名称 
    EditorPane。 
    
public static final Region FILE_CHOOSER
Region,使用名称 
    FileChooser。 
    
public static final Region FORMATTED_TEXT_FIELD
Region,使用名称 
    FormattedTextField。 
    
public static final Region INTERNAL_FRAME
Region,使用名称 
    InternalFrame。 
    
public static final Region INTERNAL_FRAME_TITLE_PANE
Region,使用名称 
    InternalFrameTitlePane。 
    
public static final Region LABEL
Region,使用名称 
    Label。 
    
public static final Region LIST
Region,使用名称 
    List。 
    
public static final Region MENU
Region,使用名称 
    Menu。 
    
public static final Region MENU_BAR
Region,使用名称 
    MenuBar。 
    
public static final Region MENU_ITEM
Region,使用名称 
    MenuItem。 
    
public static final Region MENU_ITEM_ACCELERATOR
Region,使用名称 
    MenuItemAccelerator。 
    
public static final Region OPTION_PANE
Region,使用名称 
    OptionPane。 
    
public static final Region PANEL
Region,使用名称 
    Panel。 
    
public static final Region PASSWORD_FIELD
Region,使用名称 
    PasswordField。 
    
public static final Region POPUP_MENU
Region,使用名称 
    PopupMenu。 
    
public static final Region POPUP_MENU_SEPARATOR
Region,使用名称 
    PopupMenuSeparator。 
    
public static final Region PROGRESS_BAR
Region,使用名称 
    ProgressBar。 
    
public static final Region RADIO_BUTTON
Region,使用名称 
    RadioButton。 
    
public static final Region RADIO_BUTTON_MENU_ITEM
Region,使用名称 
    RadioButtonMenuItem。 
    
public static final Region ROOT_PANE
Region,使用名称 
    RootPane。 
    
public static final Region SCROLL_BAR
Region,使用名称 
    ScrollBar。 
    
public static final Region SCROLL_BAR_TRACK
Region,使用名称 
    ScrollBarTrack。 
    
public static final Region SCROLL_BAR_THUMB
Region,使用名称 
    ScrollBarThumb。 
    
public static final Region SCROLL_PANE
Region,使用名称 
    ScrollPane。 
    
public static final Region SEPARATOR
Region,使用名称 
    Separator。 
    
public static final Region SLIDER
Region,使用名称 
    Slider。 
    
public static final Region SLIDER_TRACK
Region,使用名称 
    SliderTrack。 
    
public static final Region SLIDER_THUMB
Region,使用名称 
    SliderThumb。 
    
public static final Region SPINNER
Region,使用名称 
    Spinner。 
    
public static final Region SPLIT_PANE
Region,使用名称 
    SplitPane。 
    
public static final Region SPLIT_PANE_DIVIDER
Region,使用名称 
    SplitPaneDivider。 
    
public static final Region TABBED_PANE
Region,使用名称 
    TabbedPane。 
    
public static final Region TABBED_PANE_TAB
Region,使用名称 
    TabbedPaneTab。 
    
public static final Region TABBED_PANE_TAB_AREA
Region,使用名称 
    TabbedPaneTabArea。 
    
public static final Region TABBED_PANE_CONTENT
Region,使用名称 
    TabbedPaneContent。 
    
public static final Region TABLE
Region,使用名称 
    Table。 
    
public static final Region TABLE_HEADER
Region,使用名称 
    TableHeader。 
    
public static final Region TEXT_AREA
Region,使用名称 
    TextArea。 
    
public static final Region TEXT_FIELD
Region,使用名称 
    TextField。 
    
public static final Region TEXT_PANE
Region,使用名称 
    TextPane。 
    
public static final Region TOGGLE_BUTTON
Region,使用名称 
    ToggleButton。 
    
public static final Region TOOL_BAR
Region,使用名称 
    ToolBar。 
    
public static final Region TOOL_BAR_CONTENT
Region,使用名称 
    ToolBarContent。 
    
public static final Region TOOL_BAR_DRAG_WINDOW
Region,使用名称 
    ToolBarDragWindow。 
    
public static final Region TOOL_TIP
Region,使用名称 
    ToolTip。 
    
public static final Region TOOL_BAR_SEPARATOR
Region,使用名称 
    ToolBarSeparator。 
    
public static final Region TREE
Region,使用名称 
    Tree。 
    
public static final Region TREE_CELL
Region,使用名称 
    TreeCell。 
    
public static final Region VIEWPORT
Region,使用名称 
    Viewport。 
    
| 构造方法详细信息 | 
|---|
protected Region(String name, String ui, boolean subregion)
ComponentUI 类创建自己的 
    JComponent 子类时使用此方法。 
    
name - region 的名称
     ui - 将从 
      component.getUIClassID 中返回的字符串。如果是一个子 region,则该参数将为 null。
     subregion - 判断是否是一个子 region。
     | 方法详细信息 | 
|---|
public boolean isSubregion()
Region.BUTTON 对应于某个 
    Component,因此 
    Region.BUTTON.isSubregion() 返回 false。 
    
public String getName()
public String toString()