public class DialogItem extends java.lang.Object implements java.lang.Cloneable
Modified by: Joseph A. Huwaldt
Constructor and Description |
---|
DialogItem()
Construct a new and empty DialogItem.
|
DialogItem(java.lang.String prefix,
java.lang.Object element)
Construct a new DialogItem with the specified elements.
|
DialogItem(java.lang.String prefix,
java.lang.Object element,
java.lang.String suffix)
Construct a new DialogItem with the specified elements.
|
DialogItem(java.lang.String prefix,
java.lang.Object element,
Unit[] unitList)
Construct a new DialogItem with the specified elements.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a shallow copy of this DialogItem instance.
|
java.lang.Object |
getElement()
Return the element to be edited.
|
java.lang.String |
getFileExtension()
Returns the file extension requested for saving a file (or null if none has been
set).
|
java.lang.String |
getPrefix()
Return the prefix String.
|
java.lang.String |
getSuffix()
Return the suffix String.
|
Unit[] |
getUnitList()
Return the array of units.
|
boolean |
isLoadFile()
Returns the load/save option (true to use a load file dialog and false to use a
save file dialog).
|
void |
setElement(java.lang.Object element)
Set the element to be edited.
|
void |
setFileExtension(java.lang.String extension)
Set the file extension to enforce when selecting a file for saving.
|
void |
setLoadFile(boolean load)
Set the file load/save option (if the element is of type File).
|
void |
setPrefix(java.lang.String prefix)
Set the prefix String.
|
void |
setSuffix(java.lang.String suffix)
Set the suffix string.
|
void |
setUnitList(Unit[] units)
Set the array of units.
|
public DialogItem()
public DialogItem(java.lang.String prefix, java.lang.Object element)
public DialogItem(java.lang.String prefix, java.lang.Object element, java.lang.String suffix)
public DialogItem(java.lang.String prefix, java.lang.Object element, Unit[] unitList)
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
public java.lang.Object getElement()
public void setElement(java.lang.Object element)
public java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
public Unit[] getUnitList()
public void setUnitList(Unit[] units)
public void setLoadFile(boolean load)
load
- Set to true
to use a "load file" dialog and
false
to use a "save file" dialog.public boolean isLoadFile()
public void setFileExtension(java.lang.String extension)
public java.lang.String getFileExtension()
public java.lang.Object clone()
clone
in class java.lang.Object