Interface AddeEntry
- All Known Implementing Classes:
LocalAddeEntry
,RemoteAddeEntry
public interface AddeEntry
Represents a source of ADDE data. An ADDE entry may describe a dataset on
remote servers or the user's own machine.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Represents the possible actions that an ADDE editor can perform.static enum
Where did this entry come from?static enum
Has the user elected to disable this entry from appearing in its relevant chooser?static enum
Type of chooser this should appear under.static enum
Sort of a "misc" status field... -
Field Summary
Modifier and TypeFieldDescriptionstatic final AddeAccount
Represents the "no accounting" entries. -
Method Summary
Modifier and TypeMethodDescriptionCurrently used as a identifier for convenient storage by the server manager.Accounting information associated with the current entry.Address of the server associated with the current entry.Source that specified this entry.GUI status of the entry.HandyString
representation of this ADDE entry.Type of chooser this entry should appear under.Does this entry represent a "valid" ADDE server.getGroup()
Dataset/group located on the server.getName()
Name associated with this entry.boolean
Determine whether or not this entry will be saved between application sessions.void
setEntryAlias
(String newAlias) void
setEntryStatus
(AddeEntry.EntryStatus newStatus) toString()
String representation of this entry.
-
Field Details
-
DEFAULT_ACCOUNT
Represents the "no accounting" entries.
-
-
Method Details
-
getAddress
Address of the server associated with the current entry.LocalAddeEntries
will returnlocalhost
.- Returns:
- Server address.
-
getGroup
Dataset/group located on the server.- Returns:
- ADDE group.
-
getName
Name associated with this entry.- Returns:
- Name associated with this entry.
-
getAccount
Accounting information associated with the current entry. If the server does not require accounting information, this method returnsDEFAULT_ACCOUNT
.- Returns:
- ADDE account object.
-
getEntryType
Type of chooser this entry should appear under.- Returns:
- The "type" of data associated with this entry.
-
getEntryValidity
Does this entry represent a "valid" ADDE server.- Returns:
- Whether or not this entry has been validated.
-
getEntrySource
Source that specified this entry. For example; allows you to distinguish "system" entries (which cannot be removed, only disabled) from entries created by the user (full control).- Returns:
- Source of this entry.
-
getEntryStatus
GUI status of the entry. Differs fromAddeEntry.EntryValidity
in thatEntryStatus
controls this entry showing up in a chooser and has nothing to do with whether or not the entry is a valid ADDE server.- Returns:
- Status of this entry.
-
getEntryText
HandyString
representation of this ADDE entry. Currently looks likeADDRESS/GROUP
, but this is subject to change.- Returns:
- Entry as a
String
.
-
setEntryStatus
-
getEntryAlias
-
setEntryAlias
-
isEntryTemporary
boolean isEntryTemporary()Determine whether or not this entry will be saved between application sessions.- Returns:
- Whether or not this entry is saved for subsequent sessions.
-
asStringId
Currently used as a identifier for convenient storage by the server manager.- Returns:
- Identifier for this entry.
-
toString
String representation of this entry.Output will typically contain internal details and as such will differ from
getEntryText()
.
-