1334 lines · 41.1 KB · HTML
RawDownload
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!--Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. This code is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License version 2 only, aspublished by the Free Software Foundation.  Oracle designates thisparticular file as subject to the "Classpath" exception as providedby Oracle in the LICENSE file that accompanied this code. This code is distributed in the hope that it will be useful, but WITHOUTANY WARRANTY; without even the implied warranty of MERCHANTABILITY orFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public Licenseversion 2 for more details (a copy is included in the LICENSE file thataccompanied this code). You should have received a copy of the GNU General Public License version2 along with this work; if not, write to the Free Software Foundation,Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USAor visit www.oracle.com if you need additional information or have anyquestions. --></head><body bgcolor="white"><h3>Component Specific Properties</h3><p> The look, and to some degree the feel of Synthcan be customized by way of component specific properties.These properties are accessed from <a				    href="../SynthStyle.html">SynthStyle#get</a>. Refer to <a href="synthFileFormat.html#e.property">synth file format</a> for examples of how to specify these properties in a synth configuration file.</p>    <p>      This file specifies the expected class type each of the values      are to take. The behavior of supplying the wrong type is      unspecified: typically a <code>ClassCastException</code> is      thrown, but it is implementation specific.    </p><h4>ArrowButton</h4><p> ArrowButton is a special type of JButton that renders an arrow.ArrowButton is typically not created directly, rather some of theComponents will create it       to render a button with an arrow. The      components that make       use of ArrowButton       are:JComboBox, JScrollBar and JSplitPane (for the buttons on the divider).In       addition to the <a href="#buttonProperties">Button 	properties</a>, ArrowButton supportsthe following propeties: </p><h5>ArrowButton Specific Properties</h5><table border="1">  <thead><tr>    <th>Property</th>    <th>Expected Type</th>    <th>Default Value</th>    <th>Description </th>  </tr>  </thead> <tbody>    <tr>      <td>ArrowButton.size</td>      <td>Integer</td>      <td>16 	 </td>      <td>Preferred size of the arrow button. </td>    </tr>  </tbody></table><br><h4><a name="JButton">JButton</a></h4><p> JButton paints text using the TEXT_FOREGROUND ColorType. In additionto the <a href="#buttonProperties">Button 	properties</a>, JButtonsupports the following property: </p><h5>JButton Specific Properties</h5><table border="1">  <thead><tr>    <th>Property</th>    <th>Expected Type</th>    <th>Default Value</th>    <th>Description </th>  </tr>  </thead> <tbody>	<tr>      <td>Button.defaultButtonFollowsFocus</td>      <td>Boolean</td>      <td>true 	 </td>      <td>Whether or not the 	    default JButton should change to thebutton that is 	    receiving focus. </td>    </tr>  </tbody></table><br><h4><a name="JCheckBox">JCheckBox</a></h4><p> JCheckBox paints text using the TEXT_FOREGROUND ColorType. Inaddition to the <a href="#buttonProperties">Button 	properties</a>,JCheckBox supports the following property: </p><h5>JCheckBox Specific Properties</h5><table border="1">  <thead><tr>    <th>Property</th>    <th>Expected Type</th>    <th>Default Value</th>    <th>Description </th>  </tr>  </thead> <tbody>	<tr>      <td>CheckBox.icon</td>      <td>Icon</td>      <td>null 	 </td>      <td>Icon used to render the check. </td>    </tr>  </tbody></table><br><h4><a name="JComboBox">JComboBox</a></h4><p> JComboBox is a composite component that consists of the followingchild Components: </p><table border="1">  <thead><tr>    <th>Name</th>    <th>Type</th>    <th>Description </th>  </tr>  </thead> <tbody>	<tr>      <td>ComboBox.arrowButton</td>      <td>SynthArrowButton 	 </td>      <td>Renders the drop down indicator. 	</td>    </tr>    <tr>      <td>ComboBox.list</td>      <td>JList 	 </td>      <td>JList used to render the values. 	</td>    </tr>    <tr>      <td>ComboBox.listRenderer</td>      <td>Component 	 </td>      <td>The renderer used for the JComboBox's JList. 	</td>    </tr>    <tr>      <td>ComboBox.popup</td>      <td>JPopupMenu 	 </td>      <td>JPopupMenu used to show the ComboBox.list of the JComboBox. 	</td>    </tr>    <tr>      <td>ComboBox.renderer</td>      <td>Component 	 </td>      <td>The renderer used for the JComboBox. This is ONLY set if 	the renderer is a UIResource. 	</td>    </tr>    <tr>      <td>ComboBox.scrollPane</td>      <td>JScrollPane 	 </td>      <td>JScrollPane containing the JList. 	</td>    </tr>    <tr>      <td>ComboBox.textField</td>      <td>JTextField 	 </td>      <td>The editor. </td>    </tr>  </tbody></table><p> </p><h5>JComboBox Specific Properties</h5><table border="1">  <thead><tr>    <th>Property</th>    <th>Expected Type</th>    <th>Default Value</th>    <th>Description </th>  </tr>  </thead> <tbody>    <tr>      <td>ComboBox.showPopupOnNavigation</td>      <td>Boolean</td>      <td>false 	 </td>      <td>Whether or not the JPopupMenu should appear when 	 navigatingwith the keyboard. </td>    </tr>  </tbody></table><br><h4>JFileChooser</h4><h5>JFileChooser Specific Properties</h5><table cellpadding="2" cellspacing="2" border="1" style="width: 100%; text-align: left;">  <tbody>    <tr>      <th style="vertical-align: top; text-align: center;">Property</th>      <th style="vertical-align: top; text-align: center;">Expected Type<br>      </th>      <th style="vertical-align: top; text-align: center;">Default Value<br>      </th>      <th style="vertical-align: top; text-align: center;">Description</th>    </tr>    <tr>      <td style="vertical-align: top;">FileChooser.cancelIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon displayed on cancel buttonof the file chooser.<br>      </td>    </tr>    <tr>      <td style="vertical-align: top;">FileChooser.okIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon displayed on the ok buttonof the file chooser.<br>      </td>    </tr>    <tr>      <td style="vertical-align: top;">FileView.directoryIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used for directories.      </td>    </tr>    <tr>      <td style="vertical-align: top;">FileView.fileIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used for files.      </td>    </tr>    <tr>      <td style="vertical-align: top;">FileView.computerIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used for directories that            represent the computer.  Not all platforms will make use            of this icon.      </td>    </tr>    <tr>      <td style="vertical-align: top;">FileView.hardDriveIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used to represent the root            of a hard drive.  For example, on Windows this would be            used when viewing the C drive.      </td>    </tr>    <tr>      <td style="vertical-align: top;">FileView.floppyDriveIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used to represent a floppy          disk.      </td>    </tr>    <tr>      <td style="vertical-align: top;">FileChooser.newFolderIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used by the button that creates a new          folder.      </td>    </tr>              <tr>      <td style="vertical-align: top;">FileChooser.upFolderIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used by the button that navigates to the          parent folder.      </td>    </tr>    <tr>      <td style="vertical-align: top;">FileChooser.homeFolderIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used by the button that navigates to the          current user's home directory.      </td>    </tr>              <tr>      <td style="vertical-align: top;">FileChooser.detailsViewIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used by the button that toggles the          detailed files list view.      </td>    </tr>                 <tr>      <td style="vertical-align: top;">FileChooser.listViewIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used by the button that toggles the          regular files list view, showing only an icon and the name of each          file and directory.      </td>    </tr>              <tr>      <td style="vertical-align: top;">FileChooser.viewMenuIcon<br>      </td>      <td style="vertical-align: top;">Icon<br>      </td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon used by the button that shows popup menu          for selection of a view mode.      </td>    </tr>  </tbody></table><br><h4><a name="JInternalFrame"></a>JInternalFrame</h4><h5>JInternalFrame Specific Properties</h5><table cellpadding="2" cellspacing="2" border="1" style="text-align: left; width: 100%;">  <tbody>    <tr>      <th style="vertical-align: top; text-align: center;">Property<br>      </th>      <th style="vertical-align: top; text-align: center;">Expected Type<br>      </th>      <th style="vertical-align: top; text-align: center;">DefaultValue<br>      </th>      <th style="vertical-align: top; text-align: center;">Description<br>      </th>    </tr>    <tr>      <td style="vertical-align: top;">InternalFrame.icon<br>      </td>      <td style="vertical-align: top;">Icon</td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon drawn representing thesystem<br>icon of the internal frame.&nbsp; If pressed<br>the system menu will be shown.<br>      </td>    </tr>  </tbody></table><br><h4><a name="JInternalFrameTitlePane"></a>JInternalFrameTitlePane</h4><p>JInternalFrameTitlePane is the control bar located at the top of theinternal frame similar to that found in a frame.<br></p><h5>JInternalFrameTitlePane Specific Properties</h5><table cellpadding="2" cellspacing="2" border="1" style="text-align: left; width: 100%;">  <tbody>    <tr>      <th style="vertical-align: top; text-align: center;">Property<br>      </th>      <th style="vertical-align: top; text-align: center;">Expected Type<br>      </th>      <th style="vertical-align: top; text-align: center;">Default Value<br>      </th>      <th style="vertical-align: top; text-align: center;">Description<br>      </th>    </tr>    <tr>      <td style="vertical-align: top;">InternalFrameTitlePane.maximizeIcon<br>      </td>      <td style="vertical-align: top;">Icon</td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon drawn to indicate theability to maximize the internal frame.<br>      </td>    </tr>    <tr>      <td style="vertical-align: top;">InternalFrameTitlePane.minimizeIcon<br>      </td>      <td style="vertical-align: top;">Icon</td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon drawn to indicate theability to restore the internal frame back to its previous state.<br>      </td>    </tr>    <tr>      <td style="vertical-align: top;">InternalFrameTitlePane.iconifyIcon<br>      </td>      <td style="vertical-align: top;">Icon</td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon drawn to indicate theability to minimize the internal frame.<br>      </td>    </tr>    <tr>      <td style="vertical-align: top;">InternalFrameTitlePane.closeIcon<br>      </td>      <td style="vertical-align: top;">Icon</td>      <td style="vertical-align: top;">null<br>      </td>      <td style="vertical-align: top;">Icon drawn to indicate theabililty to close the internal frame.      </td>    </tr>    <tr>      <td style="vertical-align: top;">InternalFrameTitlePane.titleSpacing<br>      </td>      <td style="vertical-align: top;">Integer</td>      <td style="vertical-align: top;">2</td>      <td style="vertical-align: top;">Space between the	    buttons on the title pane and the title.      </td>    </tr>    <tr>      <td style="vertical-align: top;">InternalFrameTitlePane.buttonSpacing<br>      </td>      <td style="vertical-align: top;">Integer</td>      <td style="vertical-align: top;">2</td>      <td style="vertical-align: top;">Space between the buttons on	    the title pane.      </td>    </tr>    <tr>      <td style="vertical-align: top;">InternalFrameTitlePane.maxFrameIconSize<br>      </td>      <td style="vertical-align: top;">Dimension</td>      <td style="vertical-align: top;">16x16</td>      <td style="vertical-align: top;">Maximum size of the frame	    icon that will be rendered on the title pane.  If the icon	    is bigger than this size, it will be scaled down.      </td>    </tr>    <tr>      <td style="vertical-align: top;">InternalFrameTitlePane.titleAlignment<br>      </td>      <td style="vertical-align: top;">leading|trailing|center</td>      <td style="vertical-align: top;">leading</td>      <td style="vertical-align: top;">Alignment for the title.	    With a left to right component orientation leading is left	    and trailing right.  With a right to left component	    orientation leading is right and trailing left.      </td>    </tr>  </tbody></table><br><h4><a name="JList">JList</a></h4><p> JList's sets the name of the renderer to List.renderer.       JListsupports the following properties: </p><h5>JList Specific Properties</h5><table border="1">  <thead><tr>    <th>Property</th>    <th>Expected Type</th>    <th>Default Value</th>    <th>Description </th>  </tr>  </thead> <tbody>    <tr>      <td>List.rendererUseListColors</td>      <td>Boolean</td>      <td>true 	 </td>      <td>If true the renderers state is not updated, and the 	    textcolors come from JList's getSelectionBackground and 	getSelectionForeground methods. If false, the renderer's 	    state isupdated and the colors will instead come from the 	    Style. 	</td>    </tr>    <tr>      <td>List.rendererUseUIBorder</td>      <td>Boolean</td>      <td>true 	 </td>      <td>If true setBorder on the renderer will succeed 	 regardlessof the border passed in, otherwise setBorder on 	    the renderer willonly succeed if it is a Synth Border. 	</td>    </tr>

Lines 1–500 of 1334.