|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.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 Element s 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 Layout
TransientMarker
public void setActive(boolean active) throws TransientMarker
Layout
setActive
in interface Layout
TransientMarker
public void setInherited(Layout layout)
Layout
setInherited
in interface Layout
public java.lang.String getName()
Layout
getName
in interface Layout
public IdeLayout getOwner() throws TransientMarker
Layout
IdeLayout
that owns this layout.
getOwner
in interface Layout
TransientMarker
public void setOwner(IdeLayout owner) throws TransientMarker
Layout
setOwner
in interface Layout
TransientMarker
public java.lang.String getFilename()
public long getTimestamp()
getTimestamp
in interface Document
public boolean isReadOnly()
isReadOnly
in interface Document
true
if the document is a read-only document.public boolean isDirty()
isDirty
in interface Dirtyable
true
if the data item has been modified.public void markDirty(boolean dirty)
Dirtyable
markDirty(...)
instead of
setDirty(...)
so that the JavaBeans
Introspector
will not
mistakenly identify "dirty" as a JavaBean property.
markDirty
in interface Dirtyable
dirty
- If true
, sets the object as being
dirty; if false
, sets the object as being up-to-date.public void close()
close
in interface Document
public boolean isNew()
Document
true
if the document's data has never been
saved.
isNew
in interface Document
true
if the document's data has never been
saved.public java.lang.Object getData()
getData
in interface Data
public java.lang.String getShortLabel()
getShortLabel
in interface Displayable
public java.lang.String getLongLabel()
getLongLabel
in interface Displayable
public java.net.URL getURL()
getURL
in interface Locatable
public void setURL(java.net.URL url)
url
setURL
in interface Locatable
url
- the url
to set.public java.lang.String getToolTipText()
Displayable
Displayable
.
In many cases it may be appropriate for this method to return the
same value as Displayable.getLongLabel()
.
getToolTipText
in interface Displayable
public boolean mayHaveChildren()
Element
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.
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 Element
public java.util.Iterator getChildren()
Element
Element
interface to
provide a convenient way of getting an Iterator
over any
contained child Element
s 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 Element
s or
null
if there are no children.
getChildren
in interface Element
public Attributes getAttributes()
getAttributes
in interface Element
public void attach(Observer observer)
Subject
Subject
interface
changes.
Implementors should do nothing when the same observer is added more
than once.
attach
in interface Subject
observer
- the Observer
interested in change notification
messages.public void detach(Observer observer)
Subject
Subject
interface changes.
Implementors should do nothing when the same observer is removed more
than once.
detach
in interface Subject
observer
- the Observer
disinterested in change
notification messages.public void notifyObservers(java.lang.Object object, UpdateMessage change)
Subject
notifyObservers
in interface Subject
object
- 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()
Displayable
toString
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, 2004, Oracle. All rights reserved.