|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.deepamehta.PresentableType
Type Model. A type is a topic type or an association type.
A PresentableType can be serialized and send through an output stream.
A PresentableType is created at server side and send to the client
who builds a PresentationType upon it.
| Field Summary | |
protected java.lang.String |
assocTypeColor
Association type color. |
protected boolean |
disabled
Initialized by setDisabled(boolean).Accessed by #getDisabled. |
protected boolean |
hiddenTopicNames
Initialized by setHiddenTopicNames(boolean).Accessed by getHiddenTopicNames(). |
protected java.lang.String |
id
|
protected boolean |
isSearchType
Initialized by setSearchType(boolean).Accessed by isSearchType. |
protected java.lang.String |
name
|
protected java.util.Vector |
typeDefinition
The type definition, used for implementation of the Type interface. |
protected java.lang.String |
typeIconfile
The the name of the iconfile used to draw this type. |
protected int |
version
|
| Constructor Summary | |
PresentableType()
|
|
PresentableType(BaseTopic topic)
|
|
PresentableType(PresentableType type)
|
|
PresentableType(java.lang.String id,
java.lang.String name,
int version)
|
|
| Method Summary | |
java.lang.String |
getAssocTypeColor()
References checked: 24.12.2001 (2.0a14-pre5) |
boolean |
getHiddenTopicNames()
References checked: 9.10.2002 (2.0a16-pre5) |
java.lang.String |
getID()
|
java.lang.String |
getName()
|
java.util.Vector |
getTypeDefinition()
Vector of ( PropertyDefinition) |
java.lang.String |
getTypeIconfile()
References checked: 27.12.2001 (2.0a14-pre5) |
int |
getVersion()
|
boolean |
isDisabled()
References checked: 9.10.2002 (2.0a16-pre5) |
boolean |
isSearchType()
|
void |
setAssocTypeColor(java.lang.String color)
References checked: 30.7.2001 (2.0a11) |
void |
setDisabled(boolean disabled)
|
void |
setHiddenTopicNames(boolean hidden)
|
void |
setSearchType(boolean isSearchType)
|
void |
setTypeDefinition(java.util.Vector typeDefinition)
References checked: 30.7.2001 (2.0a11) |
void |
setTypeIconfile(java.lang.String typeIconfile)
References checked: 30.7.2001 (2.0a11) |
void |
write(java.io.DataOutputStream out)
Serializes this PresentableType and writes it to the specified
output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String id
protected java.lang.String name
protected int version
protected java.util.Vector typeDefinition
Type interface.
### Key: property name (String)
### Value: property definition (PropertyDefinition)
Initialized by setTypeDefinition(java.util.Vector).
Accessed by getTypeDefinition().
protected java.lang.String typeIconfile
Initialized by setTypeIconfile(java.lang.String).
Accessed by getTypeIconfile().
protected java.lang.String assocTypeColor
Initialized by setAssocTypeColor(java.lang.String).
Accessed by getAssocTypeColor().
protected boolean disabled
setDisabled(boolean).#getDisabled.
protected boolean hiddenTopicNames
setHiddenTopicNames(boolean).getHiddenTopicNames().
protected boolean isSearchType
setSearchType(boolean).isSearchType.
| Constructor Detail |
public PresentableType()
public PresentableType(java.lang.String id,
java.lang.String name,
int version)
public PresentableType(PresentableType type)
public PresentableType(BaseTopic topic)
| Method Detail |
public java.lang.String getID()
getID in interface Typepublic java.lang.String getName()
getName in interface Typepublic int getVersion()
getVersion in interface Typepublic java.util.Vector getTypeDefinition()
TypePropertyDefinition)
getTypeDefinition in interface TypeApplicationService.initTypeTopic(de.deepamehta.PresentableType, boolean, de.deepamehta.service.Session),
LiveTopic.getDetail(),
ContainerTopic.getDetail()public boolean isSearchType()
isSearchType in interface Typepublic java.lang.String getTypeIconfile()
de.deepamehta.client.PresentationType(PresentableType, PresentationService)public java.lang.String getAssocTypeColor()
de.deepamehta.client.PresentationType(PresentableType, PresentationService)public boolean isDisabled()
de.deepamehta.client.PresentationType(PresentableType, PresentationService),
de.deepamehta.client.GraphPanel#nodeClicked,
de.deepamehta.client.GraphPanel#edgeClickedpublic boolean getHiddenTopicNames()
de.deepamehta.client.PresentationType(PresentableType, PresentationService),
de.deepamehta.client.GraphPanel#paintNodepublic void setTypeDefinition(java.util.Vector typeDefinition)
ApplicationService.initTypeTopic(de.deepamehta.PresentableType, boolean, de.deepamehta.service.Session)public void setTypeIconfile(java.lang.String typeIconfile)
de.deepamehta.service.ApplicationService#initTypeTopicAppearancepublic void setAssocTypeColor(java.lang.String color)
de.deepamehta.service.ApplicationService#initTypeTopicAppearancepublic void setDisabled(boolean disabled)
public void setHiddenTopicNames(boolean hidden)
public void setSearchType(boolean isSearchType)
public void write(java.io.DataOutputStream out)
throws java.io.IOException
PresentableType and writes it to the specified
output stream.
First calls super.write(out), then adds type definition, the
appearance data and the "disabled" and "hiddenTopicNames" flags.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||