|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.esri.arcgis.beans.ui.StyleComponent
public class StyleComponent
The StyleComponent is composed of a JLabel and a JComboBox. It is a very resuable component in the customizer panel of a control component in design time. It has the layout : |--------------------------------------| | [Label :] | | [ComboBox ] or [JTextField | |--------------------------------------|
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
StyleComponent()
Constructs a StyleComponent |
|
| Method Summary | |
|---|---|
JComboBox |
getComboBox()
Returns the JComboBox |
int |
getSelectedIndex()
Returns the selected constant integer of the combobox. |
void |
setSelectedIndex(int index)
Sets the selected index and shows the selected items |
void |
setStyleList(String className)
Constructs the comboBox by a class name. |
void |
setStyleList(String[] list)
Constructs the comboBox by a string list. |
void |
setText(String title)
Sets the title text. |
void |
setVGapLabelAndCombox(int vgap)
Sets vertical gap between label and combox components, default is 5. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StyleComponent()
| Method Detail |
|---|
public void setVGapLabelAndCombox(int vgap)
vgap - int an integer.public void setText(String title)
title - String
public void setStyleList(String className)
throws Exception
className - String, a class name
Exception, - if the class no found, or there is illegal access and argument.
Exceptionpublic void setStyleList(String[] list)
list - String[]public JComboBox getComboBox()
public int getSelectedIndex()
public void setSelectedIndex(int index)
index - int - an integer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||