public class PropertyInspector extends javax.swing.JComponent implements javax.accessibility.Accessible, SearchableContainer, ViewListener
Modifier and Type | Class and Description |
---|---|
protected class |
PropertyInspector.AccessiblePropertyInspector |
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected oracle.bali.inspector.PropertyModel |
model |
protected oracle.ide.inspector.Properties |
properties |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
PropertyInspector() |
PropertyInspector(PropertyDisplay propertyDisplay) |
PropertyInspector(PropertyDisplay propertyDisplay,
UserSelectedCategories userSelectedCategories) |
Modifier and Type | Method and Description |
---|---|
void |
applyValueFromFocusedComponent() |
java.awt.Dimension |
autoExpandSize(java.awt.Dimension titledPanelSize,
int orientation) |
void |
categorySelected(oracle.ide.inspector.PropertyCategoryPanel p)
Indicates that a category has been selected.
|
java.awt.Component |
componentWithFocus() |
void |
dynamicOrientation(boolean dynamicOrientation) |
boolean |
findText(java.lang.String searchText,
boolean searchForward,
boolean searchRepeat)
Find the specified searchText by searching forward or backward through the
property labels of the Searchable component.
|
boolean |
findTextInComponent(java.awt.Component c,
java.lang.String searchText,
boolean searchForward,
boolean searchRepeat)
Finds the given text.
|
javax.accessibility.AccessibleContext |
getAccessibleContext() |
java.lang.String |
getDefaultSelectedCategoryName() |
oracle.bali.inspector.PropertyModel |
getPropertyModel() |
java.lang.String |
getSelectedCategoryName() |
oracle.ide.inspector.Orientation |
orientation() |
boolean |
orientation(oracle.ide.inspector.Orientation orientation) |
protected void |
paintComponent(java.awt.Graphics g) |
void |
setAdditionalTabPages(java.awt.Component[] additionalPages) |
void |
setBackground(java.awt.Color bg) |
void |
setPropertyModel(oracle.bali.inspector.PropertyModel model) |
void |
setPropertyModel(oracle.bali.inspector.PropertyModel model,
boolean includePropertiesNotSpecifiedInLayout) |
void |
setSelectedCategoryName(java.lang.String category) |
protected void |
setStatusText(java.lang.String text) |
void |
updateCurrentCategory(java.lang.String currentCategory)
Updates the name of the category that is currently selected.
|
void |
updatePropertyEditors(oracle.bali.inspector.PropertyModel model)
Update the property editors with the given model.
|
void |
updatePropertyEditors(oracle.bali.inspector.PropertyModel model,
boolean includePropertiesNotSpecifiedInLayout)
Update the property editors with the given model.
|
void |
updateValidationIssues() |
UserSelectedCategories |
userSelectedCategories() |
void |
viewActivated(ViewEvent e)
Called when the view is activated.
|
void |
viewClosed(ViewEvent e)
Called when the view is closed.
|
void |
viewDeactivated(ViewEvent e)
Called when the view is deactivated.
|
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, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, 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, updateUI
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
protected oracle.bali.inspector.PropertyModel model
protected transient oracle.ide.inspector.Properties properties
public PropertyInspector()
public PropertyInspector(PropertyDisplay propertyDisplay)
public PropertyInspector(PropertyDisplay propertyDisplay, UserSelectedCategories userSelectedCategories)
public UserSelectedCategories userSelectedCategories()
public void dynamicOrientation(boolean dynamicOrientation)
public void categorySelected(oracle.ide.inspector.PropertyCategoryPanel p)
p
- the panel containing the properties for the selected category.public void updateCurrentCategory(java.lang.String currentCategory)
currentCategory
- the name of the current selected category.public void applyValueFromFocusedComponent()
public java.awt.Component componentWithFocus()
public boolean orientation(oracle.ide.inspector.Orientation orientation)
public oracle.ide.inspector.Orientation orientation()
public java.lang.String getSelectedCategoryName()
public void setSelectedCategoryName(java.lang.String category)
public java.lang.String getDefaultSelectedCategoryName()
public boolean findText(java.lang.String searchText, boolean searchForward, boolean searchRepeat)
SearchableContainer
An implementation of this method should perform the following steps:
false
. If there was a
previously found label, its highlight should be cleared before returning.
false
, start looking for a match
at this point. If searchRepeat is true
,
start looking for a match on the next iteration.
findText
in interface SearchableContainer
searchText
- the text to be found.searchForward
- the direction of the search.searchRepeat
- repeat the search starting beyond the last match location (if any)ContainerSearch
public boolean findTextInComponent(java.awt.Component c, java.lang.String searchText, boolean searchForward, boolean searchRepeat)
c
- the component to look into.searchText
- the text to find.searchForward
- indicates if the search should be done forwards.searchRepeat
- indicates if the search can be repeated once the end
of this display is reached.protected void setStatusText(java.lang.String text)
public void setAdditionalTabPages(java.awt.Component[] additionalPages)
public void setPropertyModel(oracle.bali.inspector.PropertyModel model)
public void setPropertyModel(oracle.bali.inspector.PropertyModel model, boolean includePropertiesNotSpecifiedInLayout)
public void updatePropertyEditors(oracle.bali.inspector.PropertyModel model)
updatePropertyEditors(model, true)
.model
- the property modelpublic void updatePropertyEditors(oracle.bali.inspector.PropertyModel model, boolean includePropertiesNotSpecifiedInLayout)
model
- the property modelincludePropertiesNotSpecifiedInLayout
- true
to include properties not specified in the property from layoutpublic void updateValidationIssues()
public java.awt.Dimension autoExpandSize(java.awt.Dimension titledPanelSize, int orientation)
public oracle.bali.inspector.PropertyModel getPropertyModel()
public javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext
in interface javax.accessibility.Accessible
getAccessibleContext
in class javax.swing.JComponent
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public void setBackground(java.awt.Color bg)
setBackground
in class javax.swing.JComponent
public void viewActivated(ViewEvent e)
ViewListener
ViewEvent
provides
information about the view activated.viewActivated
in interface ViewListener
public void viewDeactivated(ViewEvent e)
ViewListener
ViewEvent
provides
information about the view activated.viewDeactivated
in interface ViewListener
public void viewClosed(ViewEvent e)
ViewListener
ViewEvent
provides
information about the view activated.viewClosed
in interface ViewListener