|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.WindowHolder
ucar.unidata.idv.IdvManager
ucar.unidata.idv.publish.PublishManager
public class PublishManager
This manages the nascent publishing facility within the IDV. This whole framework needs to be thought out a bit more but for now we have on instance of a publisher: InfoceteraBlogger that knows how to post articles and files to an infocetera web log server.
| Field Summary | |
|---|---|
static String |
ATTR_CLASS
Xml element "class" attribute name. |
static String |
ATTR_NAME
_more_ |
static String |
TAG_PUBLISHER
Xml element "publisher" tag name |
| Fields inherited from class ucar.unidata.ui.WindowHolder |
|---|
contents, dialog, frame, window |
| Constructor Summary | |
|---|---|
PublishManager(IntegratedDataViewer idv)
Create me with the IDV |
|
| Method Summary | |
|---|---|
void |
configurePublisher(IdvPublisher publisher)
_more_ |
void |
deletePublisher(IdvPublisher publisher)
_more_ |
void |
doPublish(String title,
String filePath)
Publish the file |
void |
doPublish(String title,
String filePath,
String properties)
Publish the file |
IdvPublisher |
getPublisher()
Gets a publisher. |
List |
getPublishers()
Get the list of Publishers |
static List<TwoFacedObject> |
getPublisherTypes(IntegratedDataViewer idv,
Element root)
Process the given xml, instantiating a list of IdvPublishers |
JComboBox |
getSelector(String fixedId)
_more_ |
void |
initMenu(JMenu menu)
_more_ |
void |
initPublisher()
Initialize me |
boolean |
isPublishingEnabled()
Do we have any publishers |
void |
makeMenu(JMenu menu)
_more_ |
JComboBox |
makeSelector()
_more_ |
void |
newPublisher()
_more_ |
boolean |
publishCheck()
If publishing is not enabled then show a user message and return false |
void |
publishContent(String file,
ViewManager fromViewmanager,
JComboBox box)
_more_ |
void |
publishIslImage(ImageGenerator imageGenerator,
Element tag,
Image image)
_more_ |
void |
publishMessage()
Publish a message |
void |
publishMessage(String properties)
Publish a message with the given properties(?) |
void |
publishObject(String desc,
Object object)
This xml encoders the given object as a xidv bundle file and publishes it with the given description |
void |
publishState()
Publish the idv bundle |
void |
publishState(String properties)
Publish the idv bundle |
void |
publishXml(String desc,
Element root)
Publish the xml |
void |
publishXml(String desc,
Element root,
String fileExt)
Publish the xml |
| Methods inherited from class ucar.unidata.ui.WindowHolder |
|---|
actionPerformed, close, doMakeContents, getContents, getDialog, getFrame, getWindow, getWindowTitle, isShowing, removeAll, setMenuBar, setWindowTitle, shouldMakeDialog, show, show, showModal, toFront, windowIsClosing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TAG_PUBLISHER
public static final String ATTR_CLASS
public static final String ATTR_NAME
| Constructor Detail |
|---|
public PublishManager(IntegratedDataViewer idv)
idv - The IDV| Method Detail |
|---|
public void initMenu(JMenu menu)
menu - _more_public JComboBox getSelector(String fixedId)
fixedId - _more_
public JComboBox makeSelector()
public void publishContent(String file,
ViewManager fromViewmanager,
JComboBox box)
file - _more_fromViewmanager - _more_box - _more_
public void publishIslImage(ImageGenerator imageGenerator,
Element tag,
Image image)
imageGenerator - _more_tag - _more_image - _more_public void makeMenu(JMenu menu)
menu - _more_public void configurePublisher(IdvPublisher publisher)
publisher - _more_public void deletePublisher(IdvPublisher publisher)
publisher - _more_public void newPublisher()
public boolean isPublishingEnabled()
public boolean publishCheck()
public IdvPublisher getPublisher()
public void publishObject(String desc,
Object object)
desc - The descriptionobject - The object to encode and publish
public void publishXml(String desc,
Element root)
desc - The descriptionroot - The xml root to publish
public void publishXml(String desc,
Element root,
String fileExt)
desc - The descriptionroot - The xml root to publishfileExt - The file extensionpublic void publishMessage()
public void publishMessage(String properties)
properties - The propertiespublic void publishState()
public void publishState(String properties)
properties - The properties
public void doPublish(String title,
String filePath)
title - Title to usefilePath - The file
public void doPublish(String title,
String filePath,
String properties)
title - Title to usefilePath - The fileproperties - The propertiespublic void initPublisher()
public static List<TwoFacedObject> getPublisherTypes(IntegratedDataViewer idv,
Element root)
IdvPublishers
idv - The idvroot - Root of the publishers.xml file
public List getPublishers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||