|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.layout.BaseLayout
BaseLayout class. Base implementation of the Layout interface.
| Field Summary | |
protected Attributes |
_attributes
|
protected long |
_lastModified
Timestamp prop to record the last time this Document was updated. |
protected java.net.URL |
_url
Stores the node's url. |
| Fields inherited from interface oracle.ide.layout.Layout |
LAYOUT_ACTIVE_PROPERTY, LAYOUT_NAME_PROPERTY |
| Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
| Constructor Summary | |
protected |
BaseLayout(java.net.URL url)
Constructor |
| Method Summary | |
void |
attach(Observer observer)
Registers an observer interested in being notified when the internal state of the class implementing the Subject interface
changes. |
void |
close()
Close the node. |
protected void |
copyToImpl(BaseLayout copy)
Design pattern for supporting strongly typed copying. |
void |
detach(Observer observer)
Unregisters an observer that is not interested anymore in being notified when the internal state of the class implementing the Subject
interface changes. |
protected boolean |
equalsImpl(BaseLayout other)
This is a helper method for Object.equals(Object) that can
also be used by subclasses that implement Object.equals(Object). |
protected static Layout |
findLayout(java.net.URL url,
Element layout)
|
Attributes |
getAttributes()
Get the layout's attributes. |
java.util.Iterator |
getChildren()
This method is part of the Element interface to
provide a convenient way of getting an Iterator over any
contained child Elements without having to test the
object's type with the instanceof operator or having
to downcast to a more specific type. |
java.lang.Object |
getData()
Gets the data element that implements this interface. |
java.lang.String |
getFilename()
Retrieves the filename associated with this Document. |
java.lang.String |
getLongLabel()
Gets a fully qualified label for display purpose. |
java.lang.String |
getName()
Get this layout name. |
IdeLayout |
getOwner()
Get the IdeLayout that owns this layout. |
java.lang.String |
getShortLabel()
Gets a short label for display purpose. |
long |
getTimestamp()
Gets the Document's time stamp. |
java.lang.String |
getToolTipText()
Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this Displayable. |
java.net.URL |
getURL()
Gets the url that uniquely identifies this Element. |
boolean |
isActive()
Returns true if this layout is currently active. |
boolean |
isDirty()
True if the data in the Document has been modified. |
boolean |
isNew()
Returns true if the document's data has never been
saved. |
boolean |
isReadOnly()
is this node read-only? |
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state. |
boolean |
mayHaveChildren()
This method is part of the Element interface to
provide a convenient way of determining whether an object may
have children without having to test the object's type with the
instanceof operator or having to downcast to a
more specific type. |
void |
notifyObservers(java.lang.Object object,
UpdateMessage change)
Notifies all observers that the state of the subject has changed. |
void |
setActive(boolean active)
Mark this layout as the currently active layout. |
void |
setInherited(Layout layout)
Set a layout from which this layout inherits settings. |
void |
setOwner(IdeLayout owner)
Set the owner of this layout. |
void |
setURL(java.net.URL url)
Sets the url |
java.lang.String |
toString()
Returns the Short Label displayed to a user. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.ide.model.Document |
getInputStream, open, save |
| Methods inherited from interface oracle.ide.model.Displayable |
getIcon |
| Methods inherited from interface oracle.ide.model.LazyLoadable |
isOpen |
| Methods inherited from interface oracle.ide.util.PropertyAccess |
getProperty, removeProperty, setProperty |
| Field Detail |
protected long _lastModified
protected java.net.URL _url
protected Attributes _attributes
| Constructor Detail |
protected BaseLayout(java.net.URL url)
| Method Detail |
public boolean isActive()
throws TransientMarker
Layout
isActive in interface LayoutTransientMarker
public void setActive(boolean active)
throws TransientMarker
Layout
setActive in interface LayoutTransientMarkerpublic void setInherited(Layout layout)
Layout
setInherited in interface Layoutpublic java.lang.String getName()
Layout
getName in interface Layout
public IdeLayout getOwner()
throws TransientMarker
LayoutIdeLayout that owns this layout.
getOwner in interface LayoutTransientMarker
public void setOwner(IdeLayout owner)
throws TransientMarker
Layout
setOwner in interface LayoutTransientMarkerpublic java.lang.String getFilename()
public long getTimestamp()
getTimestamp in interface Documentpublic boolean isReadOnly()
isReadOnly in interface Documentpublic boolean isDirty()
isDirty in interface Dirtyabletrue if the data item has been modified.public void markDirty(boolean dirty)
DirtyablemarkDirty(...) instead of
setDirty(...) so that the JavaBeans
Introspector will not
mistakenly identify "dirty" as a JavaBean property.
markDirty in interface Dirtyabledirty - If true, sets the object as being
dirty; if false, sets the object as being up-to-date.public void close()
close in interface Documentpublic boolean isNew()
Documenttrue if the document's data has never been
saved.
isNew in interface Documenttrue if the document's data has never been
saved.public java.lang.Object getData()
getData in interface Datapublic java.lang.String getShortLabel()
getShortLabel in interface Displayablepublic java.lang.String getLongLabel()
getLongLabel in interface Displayablepublic java.net.URL getURL()
getURL in interface Locatablepublic void setURL(java.net.URL url)
url
setURL in interface Locatableurl - the url to set.public java.lang.String getToolTipText()
DisplayableDisplayable.
In many cases it may be appropriate for this method to return the
same value as Displayable.getLongLabel().
getToolTipText in interface Displayablepublic boolean mayHaveChildren()
ElementElement interface to
provide a convenient way of determining whether an object may
have children without having to test the object's type with the
instanceof operator or having to downcast to a
more specific type.
An implementation of Element that represents a leaf
in a tree structure should return false from this
method. An implementation of Element that could
represent a non-leaf in a tree structure should return
true from this method, even if it does not currently
contain any children.
mayHaveChildren in interface Elementpublic java.util.Iterator getChildren()
ElementElement interface to
provide a convenient way of getting an Iterator over any
contained child Elements without having to test the
object's type with the instanceof operator or having
to downcast to a more specific type.
An implementation of Element that represents a leaf
in a tree structure should return null from this
method. An implementation of Element that could
represent a non-leaf in a tree structure should return either an
Iterator over the child Elements or
null if there are no children.
getChildren in interface Elementpublic Attributes getAttributes()
getAttributes in interface Elementpublic void attach(Observer observer)
SubjectSubject interface
changes.
Implementors should do nothing when the same observer is added more
than once.
attach in interface Subjectobserver - the Observer interested in change notification
messages.public void detach(Observer observer)
SubjectSubject
interface changes.
Implementors should do nothing when the same observer is removed more
than once.
detach in interface Subjectobserver - the Observer disinterested in change
notification messages.
public void notifyObservers(java.lang.Object object,
UpdateMessage change)
Subject
notifyObservers in interface Subjectobject - the subject whose state has changed.change - what changed.protected final void copyToImpl(BaseLayout copy)
This method is intended to be helper method that subclasses can use,
if they implement the Copyable interface.
protected final boolean equalsImpl(BaseLayout other)
Object.equals(Object) that can
also be used by subclasses that implement Object.equals(Object).
It assumes that the argument is not null.
protected static Layout findLayout(java.net.URL url,
Element layout)
public java.lang.String toString()
DisplayabletoString method in java.lang.Object.
Implementors of the Displayable interface should
override this as appropriate. The default implementation is
the same as getShortLabel
toString in interface Displayable
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.