public class SKDViewerApplet
extends javax.swing.JApplet
Modifier and Type | Class and Description |
---|---|
class |
SKDViewerApplet.ListenerHelper
Simple class to manage the model listeners
|
static class |
SKDViewerApplet.LoggableRunnable |
class |
SKDViewerApplet.skdSortCombo
Combo Box popup for the Horizontal and Vertical ScrollBar
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTRAINT_TYPES_SEPARATOR
Contraint type seprator
"\u00a7"
|
static java.lang.String |
currentProjectId |
static boolean |
enableDebugMenus |
static SKDViewerApplet.ListenerHelper |
listenerHelper |
Constructor and Description |
---|
SKDViewerApplet() |
Modifier and Type | Method and Description |
---|---|
void |
addAdvancedSearchToToolbar(javax.swing.JToolBar toolbar)
Adds advanced search and clear filters icons to the toolbar
|
void |
addOnLoadListener(java.lang.Runnable onload,
java.lang.String msg)
Adds a
Runnable task to the OnLoad list. |
static void |
addZoomFunctionsToToolbar(Viewer viewer,
javax.swing.JToolBar toolbar,
ilog.views.gantt.IlvTimeScrollController timeScroll)
Creates and adds the Zoom functions (zoom in, out, zoom to week, and goto day, etc) to the
JToolBar . |
void |
clearState() |
void |
copyGanttModel(ilog.views.gantt.IlvGanttModel model)
Copy the Gantt Model and store a reference, in case we need to quickly reload the unchanged model.
|
javax.swing.JMenu |
createEditMenu()
Creates edit menu
|
javax.swing.JMenu |
createFileMenu()
Creates File menu
|
javax.swing.JMenuBar |
createMenuBar()
Creates menu bar
|
void |
destroy()
Standard applet destory method
|
static void |
disableEvents() |
void |
disableSendingActivityChangesToServer()
Disables sending the activity changes to the server.
|
void |
editConstraint(java.lang.String newValues)
Called from java script to set changed properties of the constraint being edited
|
static void |
enableEvents() |
void |
enableSendingActivityChangesToServer()
Enables sending activity changes to the server.
|
static <RequestType,ReplyType> |
fetchAndWait(SerializedDataManager<RequestType,ReplyType> manager,
RequestType request) |
java.awt.Frame |
findParentFrame() |
java.lang.String[] |
getAppAndProjId()
Get's the Scheduler app ID and proj ID
|
static java.lang.String |
getAppletBuildVersion() |
SimpleMessageBus |
getAppletEventBus()
Returns the
SimpleMessageBus instance that other components can use to register event listeners when
they need to listen for events that originate from the Maximo server. |
AppletGanttModel |
getAppletGanttModel() |
java.awt.Container |
getApplicationContainer()
returns the main container for the applet ui
|
java.lang.String |
getAppName()
Get's teh Scheduler app ID
|
java.awt.Container |
getContentPane() |
java.lang.String[][] |
getCookies()
Return the JSESSION Cookie data as a string
array where each array element contains the
cookie name and value in positions 0 and 1
of the array element
|
ilog.views.gantt.IlvGanttModel |
getGanttModelCopy() |
AppHeaderView |
getHeaderView()
Returns the AppHeaderView component that holds the toolbars
and title
|
ilog.views.gantt.IlvJScrollGanttSheet |
getJScrollGanttSheet(GanttAndResourceUsageView grView) |
java.lang.String |
getName()
Standard applet getName method
|
java.lang.String |
getProjectid()
Standard applet getName method
|
java.lang.String |
getServerHost() |
java.util.Date |
getServerTime() |
java.lang.String |
getSKDServletURLBase() |
ISKDUIInfo |
getSKDUIInfo() |
SKDUserLocaleData |
getSKDUserLocaleData() |
SortGanttModel |
getSortAndFilterGanttModel()
Gets sort and filter gantt model
|
ilog.views.gantt.graphic.timeindicator.IlvFixedTimeIndicator |
getStartTimeIndicator()
Returns fixed time indicator that was created here in applet init
|
java.lang.String |
getUISessionId()
Returns the current Maximo UI Session id
|
Viewer |
getViewer() |
void |
handleAppletEvent(java.lang.String eventName,
java.lang.String eventData,
boolean decode)
Handles the applet event and dispatches the event name and event args to the
SimpleMessageBus so that
other components can be notified about the event. |
void |
hideGlass()
Hides the glass pane.
|
void |
init()
Standard applet init method.
|
void |
init(java.awt.Container container)
Called when applet is launched as an app from within IED.
|
void |
initApp(java.lang.String projectid,
java.lang.String serverhost,
java.lang.String serverport)
Called when applet is launched as an application
|
void |
initProjectDataModel(java.lang.String scenarioprojectsString)
Gets model data for the current project and sets it to the filterMode, Viewer and appletmodel.
|
boolean |
isLaunchedAsApp()
Returns with applet was launched as app.
|
static boolean |
isProjectLoaded() |
static void |
main(java.lang.String[] args)
the arguments arg[0] for projectID and arg[1] for this host name info
for testing
|
void |
resize(int width,
int height)
Small hack to disable divider events during resize
|
static boolean |
resizedRecently() |
ilog.views.gantt.IlvGanttModel |
retrieveProjectDataModel(java.lang.String projectId) |
ISKDUIInfo |
retrieveSKDUIInfo() |
ISKDUIInfo |
retrieveSKDUIInfoProjId() |
void |
sendActivityChangesToServer() |
void |
sendActivityChangesToServerOnly() |
void |
sendConfigChangesRemote(GanttConfigChanges configChanges) |
void |
sendModelChangesRemote(GanttModelChanges modelChanges) |
void |
setBoundScrolling(ilog.views.gantt.IlvGanttChart chart,
boolean enabled) |
void |
setConstraintForEdit(ilog.views.gantt.model.general.IlvGeneralConstraint constraint)
Stores the reference of the constraint being edited
|
static void |
setEventState(boolean state) |
void |
setLookAndFeel()
Sets the default look and feel neded for the application.
|
void |
setSKDActivityQBE(java.lang.String strSKDActivityQBE)
Sets skdActivityQBE
|
void |
setSKDServletURLBase(java.lang.String skdServletURLBase)
Sets servlet URL base
|
void |
setUISessionId(java.lang.String uiSessionId)
Sets servlet UI Session Id
|
void |
showCompliance(boolean showCompliance) |
void |
showGlass(java.lang.String string)
Show Glass shows a darkened Glass Panel over the main main component with a message.
|
void |
start()
Standard applet start method
|
void |
stop()
Standard applet stop method
|
void |
switchCompliance() |
void |
viewScenario(java.lang.String eventName,
java.lang.Object data) |
void |
visibilityCallback(boolean visible)
Called from Javascript from the library.js (showObjs/hideObjs) when Applet is hidden/shown.
|
getAccessibleContext, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, setStub, showStatus
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static boolean enableDebugMenus
public static java.lang.String currentProjectId
public static final java.lang.String CONTRAINT_TYPES_SEPARATOR
public static SKDViewerApplet.ListenerHelper listenerHelper
public java.lang.String[][] getCookies()
public void init()
init
in class java.applet.Applet
public static java.lang.String getAppletBuildVersion()
public java.lang.String getName()
getName
in class java.awt.Component
public java.lang.String getProjectid()
public void destroy()
destroy
in class java.applet.Applet
public void start()
start
in class java.applet.Applet
public void stop()
stop
in class java.applet.Applet
public java.awt.Container getContentPane()
getContentPane
in interface javax.swing.RootPaneContainer
getContentPane
in class javax.swing.JApplet
public void initApp(java.lang.String projectid, java.lang.String serverhost, java.lang.String serverport)
public void init(java.awt.Container container)
container
- public AppletGanttModel getAppletGanttModel()
public java.awt.Frame findParentFrame()
public void addAdvancedSearchToToolbar(javax.swing.JToolBar toolbar)
toolbar
- public java.awt.Container getApplicationContainer()
public static void addZoomFunctionsToToolbar(Viewer viewer, javax.swing.JToolBar toolbar, ilog.views.gantt.IlvTimeScrollController timeScroll)
JToolBar
.toolbar
- public ilog.views.gantt.IlvJScrollGanttSheet getJScrollGanttSheet(GanttAndResourceUsageView grView)
public void setBoundScrolling(ilog.views.gantt.IlvGanttChart chart, boolean enabled)
public javax.swing.JMenuBar createMenuBar()
public javax.swing.JMenu createFileMenu()
public javax.swing.JMenu createEditMenu()
public Viewer getViewer()
public SKDUserLocaleData getSKDUserLocaleData()
public ISKDUIInfo getSKDUIInfo()
public void disableSendingActivityChangesToServer()
public void enableSendingActivityChangesToServer()
public void sendActivityChangesToServer()
public void sendActivityChangesToServerOnly()
public void initProjectDataModel(java.lang.String scenarioprojectsString)
scenarioprojectsString
- public static boolean isProjectLoaded()
public void addOnLoadListener(java.lang.Runnable onload, java.lang.String msg)
Runnable
task to the OnLoad list. If the UI has already been
initialized, then it is run immediately. But if the UI is still waiting to
be initialized, then it will be added to the On Load list and run once the
UI is finally initialized.public void setSKDServletURLBase(java.lang.String skdServletURLBase)
skdServletURLBase
- public java.lang.String getSKDServletURLBase()
public java.lang.String getServerHost()
public void setUISessionId(java.lang.String uiSessionId)
skdServletURLBase
- public java.lang.String getUISessionId()
public java.lang.String getAppName()
APPNAME
- webclientsession.getCurrentApp.GetID()public java.lang.String[] getAppAndProjId()
public void setSKDActivityQBE(java.lang.String strSKDActivityQBE)
skdActivityQBE
- public void editConstraint(java.lang.String newValues)
constraint
- public static void main(java.lang.String[] args)
public void setConstraintForEdit(ilog.views.gantt.model.general.IlvGeneralConstraint constraint)
constraint
- public boolean isLaunchedAsApp()
public ilog.views.gantt.graphic.timeindicator.IlvFixedTimeIndicator getStartTimeIndicator()
public SortGanttModel getSortAndFilterGanttModel()
public static <RequestType,ReplyType> ReplyType fetchAndWait(SerializedDataManager<RequestType,ReplyType> manager, RequestType request)
public java.util.Date getServerTime()
public ilog.views.gantt.IlvGanttModel retrieveProjectDataModel(java.lang.String projectId) throws java.lang.Exception
java.lang.Exception
public void hideGlass()
public void showGlass(java.lang.String string)
string
- public ISKDUIInfo retrieveSKDUIInfo() throws java.lang.Exception
java.lang.Exception
public ISKDUIInfo retrieveSKDUIInfoProjId() throws java.lang.Exception
java.lang.Exception
public void sendModelChangesRemote(GanttModelChanges modelChanges)
public void sendConfigChangesRemote(GanttConfigChanges configChanges)
public void setLookAndFeel()
public void switchCompliance()
public void showCompliance(boolean showCompliance)
public void handleAppletEvent(java.lang.String eventName, java.lang.String eventData, boolean decode)
SimpleMessageBus
so that
other components can be notified about the event. This the bridge between the Maximo server and the applet
for pushing events to the applet.
For example the following code, executed on the server causes the message and it's args to be delivered to the Applet
WebClientEvent appletEvent = new WebClientEvent(BaseViewerControl.APPLET_EVENT_NAME, (String) app.get("asnviewerId"), args, clientSession); appletEvent.addParameter(BaseViewerControl.APPLET_EVENT_TARGET_EVENT_NAME, "compare_scenarios"); clientSession.queueEvent(appletEvent);The above code will fire a "compare_scenarios" event in the Applet, passing the args as the event parameters
eventName
- name of event to dispatcheventData
- data to dispatchdecode
- if true, the data will be Base64Decoded, and converted to a Java Object before being put on the event buspublic void viewScenario(java.lang.String eventName, java.lang.Object data)
public SimpleMessageBus getAppletEventBus()
SimpleMessageBus
instance that other components can use to register event listeners when
they need to listen for events that originate from the Maximo server.public AppHeaderView getHeaderView()
public void copyGanttModel(ilog.views.gantt.IlvGanttModel model)
public ilog.views.gantt.IlvGanttModel getGanttModelCopy()
public void visibilityCallback(boolean visible)
visible
- currently visibility statepublic static void disableEvents()
public static void enableEvents()
public static void setEventState(boolean state)
public void resize(int width, int height)
resize
in class java.applet.Applet
public void clearState()
public static boolean resizedRecently()