oracle.adf.dt.objects
Class JUDTBaseObject
java.lang.Object
oracle.adf.dt.objects.JUDTBaseObject
- All Implemented Interfaces:
- oracle.ide.model.Displayable, java.util.EventListener, oracle.ide.inspector.Inspectable, oracle.ide.inspector.Inspectable2, ObjectUpdateListener, oracle.jbo.mom.xml.PersistentDefinition, java.beans.PropertyChangeListener, oracle.ide.model.SupportsInspection
- Direct Known Subclasses:
- JUDTBeanAccessorAttribute, JUDTBindingContainerDefReference, JUDTContaineeContainer, JUDTControlBinding, JUDTDCLayoutCons, JUDTFormattedTextField.JUDTDateFormat, JUDTFormattedTextField.JUDTMaskFormat, JUDTFormattedTextField.JUDTNumberFormat, JUDTIteratorBinding, JUDTLayout, JUDTLayoutCons, JUDTMethod, JUDTMethodParameter, JUDTNameValueSet, JUDTNodeObject, JUDTParameter, JUDTPropertyNameValue, JUDTSpinner.JUDTSpinnerDate, JUDTSpinner.JUDTSpinnerNumber
- public abstract class JUDTBaseObject
- extends java.lang.Object
- implements oracle.ide.inspector.Inspectable2, ObjectUpdateListener, oracle.ide.model.SupportsInspection, oracle.jbo.mom.xml.PersistentDefinition, java.beans.PropertyChangeListener, oracle.ide.model.Displayable
Field Summary |
protected oracle.ide.addin.Context |
_Context
|
protected java.lang.String |
_DefClassName
|
protected oracle.adf.model.binding.DCDefBase |
_RTDef
|
static java.lang.String |
PNAME_id
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PNAME_id
public static java.lang.String PNAME_id
_DefClassName
protected java.lang.String _DefClassName
_RTDef
protected oracle.adf.model.binding.DCDefBase _RTDef
_Context
protected oracle.ide.addin.Context _Context
JUDTBaseObject
public JUDTBaseObject()
getXMLElementTag
public abstract java.lang.String getXMLElementTag()
-
- Specified by:
getXMLElementTag
in interface oracle.jbo.mom.xml.PersistentDefinition
isSameDefinition
public boolean isSameDefinition(JUDTBaseObject object)
- Check to see if the passed in object has the same definition. We dont use ID or Full Name since this method is used to figure out if we should add an object to a container.
-
- Parameters:
object
-
- Returns:
getFullName
public java.lang.String getFullName()
getId
public final java.lang.String getId()
setId
public final void setId(java.lang.String text)
throws java.beans.PropertyVetoException
-
- Throws:
java.beans.PropertyVetoException
isNewInstance
public final boolean isNewInstance()
- Determines if this is a newly created object. This flag is mean for use by the object editors to provide different behavior for new objects.
-
- Returns:
setNewInstance
public final void setNewInstance(boolean bSet)
- This should only be called by the create action to set\clear the new flag once an object has been edited once. The action that creates this object sets the new flag to 'true'.
-
- Parameters:
bSet
-
getDefClassName
public final java.lang.String getDefClassName()
setDefClassName
public final void setDefClassName(java.lang.String sDefClass)
getDefaultDefClassName
protected java.lang.String getDefaultDefClassName()
getSubType
public final java.lang.String getSubType()
setSubType
public final void setSubType(java.lang.String sValue)
setSaveSubType
protected void setSaveSubType(boolean flag)
writeContents
public void writeContents(oracle.jbo.mom.xml.DefWriter jos)
throws oracle.jbo.mom.xml.DefPersistenceException
-
- Specified by:
writeContents
in interface oracle.jbo.mom.xml.PersistentDefinition
-
- Throws:
oracle.jbo.mom.xml.DefPersistenceException
writeChildren
public final void writeChildren(oracle.jbo.mom.xml.DefWriter jos)
throws oracle.jbo.mom.xml.DefPersistenceException
-
- Specified by:
writeChildren
in interface oracle.jbo.mom.xml.PersistentDefinition
-
- Throws:
oracle.jbo.mom.xml.DefPersistenceException
writeChildren
public void writeChildren(JUDTContents container)
writeNonContentsChildren
public void writeNonContentsChildren(oracle.jbo.mom.xml.DefWriter jos)
writeXMLIntArray
public static final void writeXMLIntArray(oracle.jbo.mom.xml.DefWriter jos,
java.lang.String attrName,
int[] valList)
writeXMLStringArray
public static final void writeXMLStringArray(oracle.jbo.mom.xml.DefWriter jos,
java.lang.String attrName,
java.lang.Object[] valList)
initFromRTDef
protected void initFromRTDef()
getRTDef
protected oracle.adf.model.binding.DCDefBase getRTDef()
hasCustomDialog
public boolean hasCustomDialog()
-
- Specified by:
hasCustomDialog
in interface oracle.ide.inspector.Inspectable2
getCustomDialogIcon
public javax.swing.Icon getCustomDialogIcon()
-
- Specified by:
getCustomDialogIcon
in interface oracle.ide.inspector.Inspectable2
getCustomDialogToolTipText
public java.lang.String getCustomDialogToolTipText()
-
- Specified by:
getCustomDialogToolTipText
in interface oracle.ide.inspector.Inspectable2
showCustomDialog
public final void showCustomDialog(java.awt.Component parent)
-
- Specified by:
showCustomDialog
in interface oracle.ide.inspector.Inspectable2
showEditorDialog
public boolean showEditorDialog(java.awt.Component parent)
- We care about return types, override this version instead.
-
- Parameters:
parent
-
- Returns:
getLinkActions
public final javax.swing.Action[] getLinkActions()
-
- Specified by:
getLinkActions
in interface oracle.ide.inspector.Inspectable2
buildsContextMenuDirectly
public boolean buildsContextMenuDirectly()
buildContextMenuEntries
public void buildContextMenuEntries(oracle.ide.ContextMenu popup)
getContextMenuActions
public final javax.swing.Action[] getContextMenuActions()
performDeleteAction
public boolean performDeleteAction()
- If the DT object knows how to handle the 'delete' key, it can do the work when this is called
buildContextActionList
protected void buildContextActionList(java.util.ArrayList actionList)
buildActionList
protected void buildActionList(java.util.ArrayList actionList)
setContext
public final void setContext(oracle.ide.addin.Context context)
-
- Specified by:
setContext
in interface oracle.ide.inspector.Inspectable
getTarget
public final java.lang.Object getTarget()
-
- Specified by:
getTarget
in interface oracle.ide.inspector.Inspectable
getPropertyModel
public final PropertyModel getPropertyModel()
-
- Specified by:
getPropertyModel
in interface oracle.ide.inspector.Inspectable
getCustomizer
public final java.beans.Customizer getCustomizer()
-
- Specified by:
getCustomizer
in interface oracle.ide.inspector.Inspectable
getAdditionalTabPages
public java.awt.Component[] getAdditionalTabPages()
-
- Specified by:
getAdditionalTabPages
in interface oracle.ide.inspector.Inspectable
getIcon
public javax.swing.Icon getIcon()
-
- Specified by:
getIcon
in interface oracle.ide.model.Displayable
getShortLabel
public java.lang.String getShortLabel()
-
- Specified by:
getShortLabel
in interface oracle.ide.model.Displayable
getLongLabel
public java.lang.String getLongLabel()
-
- Specified by:
getLongLabel
in interface oracle.ide.model.Displayable
getToolTipText
public java.lang.String getToolTipText()
-
- Specified by:
getToolTipText
in interface oracle.ide.model.Displayable
addObjectUpdateListener
public void addObjectUpdateListener(ObjectUpdateListener l)
removeObjectUpdateListener
public void removeObjectUpdateListener(ObjectUpdateListener l)
fireObjectUpdated
public void fireObjectUpdated()
- Made this public for use by the object editors
dataChanged
public void dataChanged(ObjectUpdateEvent e)
-
- Specified by:
dataChanged
in interface ObjectUpdateListener
readContents
protected void readContents(oracle.jbo.mom.xml.DefElementImpl xmlDoc)
writeObject
public final void writeObject(oracle.jbo.mom.xml.DefWriter jos)
throws oracle.jbo.mom.xml.DefPersistenceException
-
- Specified by:
writeObject
in interface oracle.jbo.mom.xml.PersistentDefinition
-
- Throws:
oracle.jbo.mom.xml.DefPersistenceException
reportExceptionToUser
protected static void reportExceptionToUser(java.lang.Throwable ex)
addVetoableChangeListener
public final void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
removeVetoableChangeListener
public final void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
addPropertyChangeListener
public final void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
public final void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
getPropertyChangeListeners
public java.beans.PropertyChangeListener[] getPropertyChangeListeners()
firePropertyChange
public void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
-
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
getHelpTopicId
public java.lang.String getHelpTopicId()
setRunningKavaTests
public static void setRunningKavaTests()
toString
public java.lang.String toString()
-
- Specified by:
toString
in interface oracle.ide.model.Displayable
Copyright © 1997, 2004, Oracle. All rights reserved.