|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.esri.arcgis.beans.ui.AbstractGeneralPanel
public abstract class AbstractGeneralPanel
This class defines a framework to create a general property UI used in
in the Customizer
of an ArcGIS object bean.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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 | |
---|---|
protected JButton |
m_bntFileBrowser
|
protected JCheckBox |
m_chkEnableArrowKey
|
protected JCheckBox |
m_chkEnabled
|
protected JCheckBox |
m_chkEnableOLEDropEvent
|
protected JCheckBox |
m_chkShowMapTips
|
protected JCheckBox |
m_chkShowScrollBars
|
protected File |
m_currentDir
|
protected JFileChooser |
m_fileChooser
|
protected JTextField |
m_fldMapDocFilename
|
protected JPanel |
m_leftStylePanel
|
protected JPanel |
m_loadDocumentPanel
|
protected PropertyChangeSupport |
m_propertyChangeSupport
|
protected JPanel |
m_rightCheckboxPanel
|
protected StyleComponent |
m_scAppearance
|
protected StyleComponent |
m_scBorderStyle
|
protected StyleComponent |
m_scMousePointer
|
protected StyleComponent |
m_scTooltipStyle
|
protected JPanel |
m_upBaseGeneralPanel
|
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 | |
---|---|
AbstractGeneralPanel()
Default constructor |
Method Summary | |
---|---|
protected void |
addCheckBox(JCheckBox checkBox)
Adds a CheckBox on the right side panel |
protected void |
addCheckBox(JCheckBox checkBox,
int gap)
Adds a CheckBox on the right side panel with a specificed gap |
protected void |
addGeneralComponent(JComponent comp,
int gap)
Adds an JComponent to the panel. |
protected void |
addLoadDocument(String label,
int gap)
The methods will adds a panel, it have called addGeneralComponent
method. |
protected void |
addMapFileBrowser()
|
protected void |
addStyleComponent(JComponent styleComp,
int gap)
Adds a StyleComponet to the panel on the left side with a specified gap. |
protected void |
addStyleComponent(StyleComponent styleComp)
Adds a StyleComponet to the panel on the left side. |
int |
getAppearance()
Gets the appearance style |
int |
getBorderStyle()
Gets the border style |
String |
getDocumentFilename()
Returns the document file name |
int |
getMousePointer()
Returns the mouse pointer |
Dimension |
getPreferredSize()
Gets the preferred size of this component. |
String |
getText()
Returns name of the panel |
int |
getTipStyle()
Returns the tip style |
boolean |
isEnableArrowKey()
Return true if the arrow key is enabled, otherwise false |
boolean |
isEsriEnabled()
|
boolean |
isOleDropEnabled()
Return true if the OLE drop event enabled. |
boolean |
isShowMapTips()
Return true if the map tips is shown, otherwise false |
protected void |
openFileBrowser()
|
void |
setAppearance(int appearance)
Sets appearance style |
void |
setBorderStyle(int style)
Sets the border style |
void |
setDocumentFilename(String doc)
Sets the document file name |
void |
setEnableArrowKey(boolean enabled)
Sets arrow key ebabled/disenabled. |
void |
setEsriEnabled(boolean enabled)
|
void |
setMousePointer(int pointer)
Sets mouse pointer |
void |
setOleDropEnabled(boolean enabled)
Sets the OLE drop event enabled/disable |
void |
setPropertyChangeSupport(PropertyChangeSupport pcs)
Sets a reference to a shared PropertyChangeSupport object. |
void |
setShowMapTips(boolean enabled)
Sets if showing the map tips. |
void |
setTipStyle(int style)
Sets the tip style. |
protected abstract void |
updateAppearance()
Updates the apppearance style. |
protected abstract void |
updateBorderStyle()
Updates the border style. |
protected void |
updateDocumentFilename()
The method is called when the document text field is changed. |
protected void |
updateEsriEnable()
The method is called when mouse pointer combox is changed. |
protected void |
updateKeyIntercept()
The method is called when key intercept combox is changed. |
protected void |
updateMousePointer()
The method is called when mouse pointer combox is changed. |
protected void |
updateTipStyle()
The method is called when tip style combox is changed. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected PropertyChangeSupport m_propertyChangeSupport
protected JFileChooser m_fileChooser
protected File m_currentDir
protected JPanel m_upBaseGeneralPanel
protected JPanel m_leftStylePanel
protected JPanel m_rightCheckboxPanel
protected StyleComponent m_scBorderStyle
protected StyleComponent m_scAppearance
protected StyleComponent m_scMousePointer
protected StyleComponent m_scTooltipStyle
protected JCheckBox m_chkEnabled
protected JCheckBox m_chkEnableOLEDropEvent
protected JCheckBox m_chkEnableArrowKey
protected JCheckBox m_chkShowMapTips
protected JCheckBox m_chkShowScrollBars
protected JPanel m_loadDocumentPanel
protected JTextField m_fldMapDocFilename
protected JButton m_bntFileBrowser
Constructor Detail |
---|
public AbstractGeneralPanel()
Method Detail |
---|
public void setPropertyChangeSupport(PropertyChangeSupport pcs)
PropertyChangeSupport
object.
pcs
- PropertyChangeSupportpublic void setBorderStyle(int style)
style
- int an enumerative integerpublic int getBorderStyle()
public void setAppearance(int appearance)
appearance
- int an enumerative integerpublic int getAppearance()
public void setMousePointer(int pointer)
pointer
- int - an enumerative integerpublic int getMousePointer()
public void setTipStyle(int style)
style
- int - an enumerative integerpublic int getTipStyle()
public void setEsriEnabled(boolean enabled)
enabled
- booleanpublic boolean isEsriEnabled()
public void setOleDropEnabled(boolean enabled)
enabled
- boolean true/falsepublic boolean isOleDropEnabled()
public void setEnableArrowKey(boolean enabled)
enabled
- booleanpublic boolean isEnableArrowKey()
public void setShowMapTips(boolean enabled)
enabled
- boolean - true/falsepublic boolean isShowMapTips()
public void setDocumentFilename(String doc)
doc
- String - absolute file name pathpublic String getDocumentFilename()
public String getText()
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
protected void addStyleComponent(StyleComponent styleComp)
styleComp
- StyleComponent, default gap is 10.protected void addStyleComponent(JComponent styleComp, int gap)
styleComp
- StyleComponent a StyleComponentgap
- int an integerprotected void addCheckBox(JCheckBox checkBox)
checkBox
- JCheckBox a JCheckBox, default gap is 0protected void addCheckBox(JCheckBox checkBox, int gap)
checkBox
- JCheckBox a JCheckboxgap
- int an integerprotected void addGeneralComponent(JComponent comp, int gap)
comp
- JComponent a JComponentgap
- int an integerprotected void addLoadDocument(String label, int gap)
addGeneralComponent
method. The panel is composed of :
-----------------------------------------------------------------
| JLabel : |
| [ JTextField ] [JButton] |
| |
-----------------------------------------------------------------
label
- String a String for labelgap
- - an integer to specify the gap to the next component.protected void addMapFileBrowser()
protected void openFileBrowser()
protected abstract void updateBorderStyle()
protected abstract void updateAppearance()
protected void updateMousePointer()
protected void updateTipStyle()
protected void updateEsriEnable()
protected void updateKeyIntercept()
protected void updateDocumentFilename()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |