|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object standup.profiling.Profile standup.clouds.ProfileCloudFrontend
public class ProfileCloudFrontend
This class stores all user parameters relating to the frontend. Care must be taken to coordinate the loading and saving of this with a UserBackendProfile!
Field Summary | |
---|---|
(package private) ShapeDetails |
shapeDetailsCloud
Constructor method where the Options is supplied from an appropriate file. |
(package private) ShapeDetails |
shapeDetailsHoose
|
(package private) ShapeDetails |
shapeDetailsMsgWHead
|
(package private) ShapeDetails |
shapeDetailsMsgWOHead
|
static String |
XMLTAG
|
Constructor Summary | |
---|---|
ProfileCloudFrontend()
|
|
ProfileCloudFrontend(Element element)
|
|
ProfileCloudFrontend(File profileFile)
|
|
ProfileCloudFrontend(Options options)
|
|
ProfileCloudFrontend(URL profileURL)
|
Method Summary | |
---|---|
OptionsCloudFrontend |
createDefaultOptions()
Returns an appropriate instance of Options with default values,
i.e. |
OptionsCloudFrontend |
getOptions()
Returns the Options contained within this Profile . |
ShapeDetails |
getShapeDetailsHouse()
|
ShapeDetails |
getShapeDetailsLaffertyBubble()
|
ShapeDetails |
getShapeDetailsLubble()
|
ShapeDetails |
getShapeDetailsMessageWindowBubbleWithHead()
|
ShapeDetails |
getShapeDetailsMessageWindowBubbleWithoutHead()
|
ShapeDetails |
getShapeDetailsToolbarBubble()
|
OptionsCloudFrontend |
loadOptions(Element element)
Returns an appropriate instance of Options whose values are taken
from the given XML Element. |
void |
quickSave(File file)
Saves this Profile but not any associated files along with it. |
void |
save(File file)
This method saves the necessary information contained within an instance to an XML file. |
boolean |
setOptions(Options incomingOptions)
Makes the given Options the one used within this Profile . |
void |
writeXML(Writer out,
String indent)
This method writes the necessary information contained within an instance to an XML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XMLTAG
ShapeDetails shapeDetailsCloud
ShapeDetails shapeDetailsHoose
ShapeDetails shapeDetailsMsgWHead
ShapeDetails shapeDetailsMsgWOHead
Constructor Detail |
---|
public ProfileCloudFrontend() throws ProfileException
ProfileException
public ProfileCloudFrontend(Element element)
public ProfileCloudFrontend(File profileFile)
public ProfileCloudFrontend(Options options)
public ProfileCloudFrontend(URL profileURL)
Method Detail |
---|
public OptionsCloudFrontend getOptions()
Profile
Options
contained within this Profile
. It
might be useful to override this method to return the options cast as the
appropriate specific Options
subclass.
getOptions
in class Profile
public boolean setOptions(Options incomingOptions)
Profile
Options
the one used within this Profile
.
Always returns true
. Override this method to do validation that
the given Options
is indeed appropriate for the particular
subclass of Profile
.
setOptions
in class Profile
public void writeXML(Writer out, String indent) throws IOException, XMLException
XMLizable
out
- The output stream for the XML file, which is assumed to be
already opened and writable.indent
- A string to be prepended before every line written by this
method. If passed appropriate white space, e.g.
XMLUtils.xmlIndent
, it can be used to control
indentation.
IOException
XMLException
public void quickSave(File file) throws XMLException
Profile
Profile
but not any associated files along with it.
This is for profiles which may depend on other files aside from the XML
file created by ProfileManager
. For example, the joke generation
backend ProfileJokeGeneration
contains pointers to XML files that
contain the custom lexicon, topic database, etc. If a Profile
doesn't have any such files, this method behaves the same as
XMLsaveable.save(File)
.
quickSave
in class Profile
file
- the file to which this Profile
should be saved.
XMLException
public void save(File file) throws XMLException
XMLsaveable
file
,XMLizable.writeXML(java.io.Writer, String)
, and
file
- The file to be saved.
XMLException
public OptionsCloudFrontend createDefaultOptions() throws ProfileException
Profile
Options
with default values,
i.e. those contained with the default options package (see
ProfileManager.getDefaultOptionsPackage()
).
createDefaultOptions
in class Profile
ProfileException
public OptionsCloudFrontend loadOptions(Element element)
Profile
Options
whose values are taken
from the given XML Element.
loadOptions
in class Profile
public ShapeDetails getShapeDetailsLubble()
public ShapeDetails getShapeDetailsHouse()
public ShapeDetails getShapeDetailsToolbarBubble()
public ShapeDetails getShapeDetailsLaffertyBubble()
public ShapeDetails getShapeDetailsMessageWindowBubbleWithHead()
public ShapeDetails getShapeDetailsMessageWindowBubbleWithoutHead()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |