Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.ide.db.controls
Class DBObjectChooserDelegate

java.lang.Object
  extended by oracle.ide.db.controls.DBObjectChooserDelegate
Direct Known Subclasses:
DBObjectChooserBridge

public abstract class DBObjectChooserDelegate
extends java.lang.Object

Part of the DBObjectChooser implementation. A DBObjectChooser will delegate all UI aspects, concerned with setting and getting the value of a DBObject, to a concrete subclass of DBObjectChooserDelegate


Constructor Summary
DBObjectChooserDelegate()
           
 
Method Summary
protected abstract  boolean accept(DBObjectChooser chooser, DBObjectProvider prov)
          gives the delegate a veto option
protected  void add(java.awt.Component comp, java.awt.GridBagConstraints constraints)
          Convenience method for subclasses to layout their UI on the DBObjectChooser panel
protected  void addIDToList(DBObjectID id)
           
protected abstract  void buildMaintainID()
          Add listeners to the UI to call DBObjectChooser.updateID(oracle.javatools.db.DBObjectID) to ensure the DBObjectChooser.getDBObjectID() would return the ID of the currently selected value.
protected abstract  void contextChanged()
          Called by the DBObjectChooser in response to a call to DBObjectChooser.setContextDBObjectID(oracle.javatools.db.DBObjectID).
protected  DBObjectID fixProvider(DBObjectID id)
           
protected  DBObjectChooser getChildChooser()
          See DBObjectChooser.getChildChooser().
protected  DBObjectChooser getChooser()
          Return the DBObjectChooser that this delegates for
protected  DBObjectID getContextDBObjectID()
          See DBObjectChooser.getContextDBObjectID().
protected  DBObjectCriteria getDBObjectCriteria()
           
protected  DBObjectID getIDFromString(java.lang.String text)
          Convenience method to return a DBObjectID that is represented by a String
protected abstract  java.lang.String getName()
          See DBObjectChooser.getName().
protected  java.lang.String getNullText()
          See DBObjectChooser.getNullText().
protected abstract  DBObject getOrCreateDBObject()
           
protected  DBObjectChooser getParentChooser()
          See DBObjectChooser.getParentChooser().
protected  DBObjectProvider getProvider()
          Return the DBObjectProvider
protected  boolean getShowIcon()
          See DBObjectChooser.getShowIcon().
protected  java.lang.String getStringFromID(DBObjectID id)
          Convenience method to return a string representation of a DBObjectID
protected  java.lang.String[] getTypes()
          See DBObjectChooser.getTypes().
protected abstract  void initialiseUI()
          Create the UI and layout on the DBObjectChooser panel.
protected abstract  boolean isEditable()
          See DBObjectChooser.isEditable().
protected abstract  boolean isEnabled()
          See DBObjectChooser.isEnabled().
protected  void setChooser(DBObjectChooser chooser)
          Set the DBObjectChooser that this delegates for
protected abstract  void setEditable(boolean enabled)
          See DBObjectChooser.setEditable(boolean).
protected abstract  void setEnabled(boolean enabled)
          See DBObjectChooser.setEnabled(boolean).
protected abstract  void setName(java.lang.String name)
          See DBObjectChooser.setName(String).
protected  void setProvider(DBObjectProvider prov)
          Set the DBObjectProvider
protected abstract  void showID()
          Called by the DBObjectChooser in response to a call to DBObjectChooser.setDBObjectID(oracle.javatools.db.DBObjectID).
protected  void updateID(DBObjectID id)
          See DBObjectChooser.updateID(oracle.javatools.db.DBObjectID).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBObjectChooserDelegate

public DBObjectChooserDelegate()
Method Detail

accept

protected abstract boolean accept(DBObjectChooser chooser,
                                  DBObjectProvider prov)
gives the delegate a veto option


initialiseUI

protected abstract void initialiseUI()
Create the UI and layout on the DBObjectChooser panel.


buildMaintainID

protected abstract void buildMaintainID()
Add listeners to the UI to call DBObjectChooser.updateID(oracle.javatools.db.DBObjectID) to ensure the DBObjectChooser.getDBObjectID() would return the ID of the currently selected value.


contextChanged

protected abstract void contextChanged()
Called by the DBObjectChooser in response to a call to DBObjectChooser.setContextDBObjectID(oracle.javatools.db.DBObjectID). The delegate can then update the UI accordingly.


showID

protected abstract void showID()
Called by the DBObjectChooser in response to a call to DBObjectChooser.setDBObjectID(oracle.javatools.db.DBObjectID). The delegate can then update the UI accordingly.


getDBObjectCriteria

protected DBObjectCriteria getDBObjectCriteria()

setName

protected abstract void setName(java.lang.String name)
See DBObjectChooser.setName(String).


getName

protected abstract java.lang.String getName()
See DBObjectChooser.getName().


setEnabled

protected abstract void setEnabled(boolean enabled)
See DBObjectChooser.setEnabled(boolean).


isEnabled

protected abstract boolean isEnabled()
See DBObjectChooser.isEnabled().


setEditable

protected abstract void setEditable(boolean enabled)
See DBObjectChooser.setEditable(boolean).


isEditable

protected abstract boolean isEditable()
See DBObjectChooser.isEditable().


getOrCreateDBObject

protected abstract DBObject getOrCreateDBObject()

setChooser

protected void setChooser(DBObjectChooser chooser)
Set the DBObjectChooser that this delegates for


getChooser

protected final DBObjectChooser getChooser()
Return the DBObjectChooser that this delegates for


setProvider

protected void setProvider(DBObjectProvider prov)
Set the DBObjectProvider


getProvider

protected final DBObjectProvider getProvider()
Return the DBObjectProvider


add

protected final void add(java.awt.Component comp,
                         java.awt.GridBagConstraints constraints)
Convenience method for subclasses to layout their UI on the DBObjectChooser panel


addIDToList

protected void addIDToList(DBObjectID id)
Parameters:
id -

getStringFromID

protected final java.lang.String getStringFromID(DBObjectID id)
Convenience method to return a string representation of a DBObjectID


getIDFromString

protected final DBObjectID getIDFromString(java.lang.String text)
Convenience method to return a DBObjectID that is represented by a String


updateID

protected void updateID(DBObjectID id)
See DBObjectChooser.updateID(oracle.javatools.db.DBObjectID).


getTypes

protected java.lang.String[] getTypes()
See DBObjectChooser.getTypes().


getShowIcon

protected boolean getShowIcon()
See DBObjectChooser.getShowIcon().


getNullText

protected java.lang.String getNullText()
See DBObjectChooser.getNullText().


getContextDBObjectID

protected DBObjectID getContextDBObjectID()
See DBObjectChooser.getContextDBObjectID().


getParentChooser

protected DBObjectChooser getParentChooser()
See DBObjectChooser.getParentChooser().


getChildChooser

protected DBObjectChooser getChildChooser()
See DBObjectChooser.getChildChooser().


fixProvider

protected DBObjectID fixProvider(DBObjectID id)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.