/** * Method: previousTrigger Restore the previous state. If no items are in * the previous history stack, this has no effect. * * Returns: {Object} Item representing state that was restored. Undefined if * no items are in the previous history stack. */ public void previousTrigger() { NavigationHistoryImpl.previousTrigger(getJSObject()); }
/** * Switch map view to a previous step in browser's history. * */ public void previous() { NavigationHistoryImpl.previous(this.getJSObject()); }
/** * Optional limit on the number of history items to retain. * If null, there is no limit. Default is 50. * * @param limit - number of items * @return void */ public void limit(int limit) { NavigationHistoryImpl.limit(this.getJSObject(), limit); }
/** * APIMethod: clear Clear history. */ public void clear() { NavigationHistoryImpl.clear(getJSObject()); }
/** * Switch map view to next step in browser's history. * */ public void next() { NavigationHistoryImpl.next(this.getJSObject()); }
/** * Activate the control when it is added to a map. * Default is true. If set to false, activate() method must * be fired in order to use the control with map. * * @param autoActivate - set automatic activation true or false * @return void */ public void autoActivate(boolean autoActivate) { NavigationHistoryImpl.autoActivate(this.getJSObject(), autoActivate); }
/** * TODO ahhughes, should this return JSObject or void? * * APIMethod: nextTrigger Restore the next state. If no items are in the * next history stack, this has no effect. The next history stack is * populated as states are restored from the previous history stack. * * Returns: {Object} Item representing state that was restored. Undefined if * no items are in the next history stack. * * * @param void * @return JSObject - Item representing state that was restored. Undefined if no items are in the next history stack. */ public JSObject nextTrigger() { return NavigationHistoryImpl.nextTrigger(this.getJSObject()); }
/** * * @return Previous Control */ public Control getPrevious() { return Control.narrowToControl(NavigationHistoryImpl.getPrevious(getJSObject())); }
/** * * @return Next Control */ public Control getNext() { return Control.narrowToControl(NavigationHistoryImpl.getNext(getJSObject())); }