|
|||||||||
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 |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected javax.swing.JButton |
m_bntFileBrowser
|
protected javax.swing.JCheckBox |
m_chkEnableArrowKey
|
protected javax.swing.JCheckBox |
m_chkEnabled
|
protected javax.swing.JCheckBox |
m_chkEnableOLEDropEvent
|
protected javax.swing.JCheckBox |
m_chkShowMapTips
|
protected javax.swing.JCheckBox |
m_chkShowScrollBars
|
protected java.io.File |
m_currentDir
|
protected javax.swing.JFileChooser |
m_fileChooser
|
protected javax.swing.JTextField |
m_fldMapDocFilename
|
protected javax.swing.JPanel |
m_leftStylePanel
|
protected javax.swing.JPanel |
m_loadDocumentPanel
|
protected java.beans.PropertyChangeSupport |
m_propertyChangeSupport
|
protected javax.swing.JPanel |
m_rightCheckboxPanel
|
protected StyleComponent |
m_scAppearance
|
protected StyleComponent |
m_scBorderStyle
|
protected StyleComponent |
m_scMousePointer
|
protected StyleComponent |
m_scTooltipStyle
|
protected javax.swing.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(javax.swing.JCheckBox checkBox)
Adds a CheckBox on the right side panel |
protected void |
addCheckBox(javax.swing.JCheckBox checkBox,
int gap)
Adds a CheckBox on the right side panel with a specificed gap |
protected void |
addGeneralComponent(javax.swing.JComponent comp,
int gap)
Adds an JComponent to the panel. |
protected void |
addLoadDocument(java.lang.String label,
int gap)
The methods will adds a panel, it have called addGeneralComponent
method. |
protected void |
addMapFileBrowser()
|
protected void |
addStyleComponent(javax.swing.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 |
java.lang.String |
getDocumentFilename()
Returns the document file name |
int |
getMousePointer()
Returns the mouse pointer |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of this component. |
java.lang.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(java.lang.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(java.beans.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 javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.beans.PropertyChangeSupport m_propertyChangeSupport
protected javax.swing.JFileChooser m_fileChooser
protected java.io.File m_currentDir
protected javax.swing.JPanel m_upBaseGeneralPanel
protected javax.swing.JPanel m_leftStylePanel
protected javax.swing.JPanel m_rightCheckboxPanel
protected StyleComponent m_scBorderStyle
protected StyleComponent m_scAppearance
protected StyleComponent m_scMousePointer
protected StyleComponent m_scTooltipStyle
protected javax.swing.JCheckBox m_chkEnabled
protected javax.swing.JCheckBox m_chkEnableOLEDropEvent
protected javax.swing.JCheckBox m_chkEnableArrowKey
protected javax.swing.JCheckBox m_chkShowMapTips
protected javax.swing.JCheckBox m_chkShowScrollBars
protected javax.swing.JPanel m_loadDocumentPanel
protected javax.swing.JTextField m_fldMapDocFilename
protected javax.swing.JButton m_bntFileBrowser
Constructor Detail |
---|
public AbstractGeneralPanel()
Method Detail |
---|
public void setPropertyChangeSupport(java.beans.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(java.lang.String doc)
doc
- String - absolute file name pathpublic java.lang.String getDocumentFilename()
public java.lang.String getText()
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
protected void addStyleComponent(StyleComponent styleComp)
styleComp
- StyleComponent, default gap is 10.protected void addStyleComponent(javax.swing.JComponent styleComp, int gap)
styleComp
- StyleComponent a StyleComponentgap
- int an integerprotected void addCheckBox(javax.swing.JCheckBox checkBox)
checkBox
- JCheckBox a JCheckBox, default gap is 0protected void addCheckBox(javax.swing.JCheckBox checkBox, int gap)
checkBox
- JCheckBox a JCheckboxgap
- int an integerprotected void addGeneralComponent(javax.swing.JComponent comp, int gap)
comp
- JComponent a JComponentgap
- int an integerprotected void addLoadDocument(java.lang.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 |