Package DisplayProject.actions

Examples of DisplayProject.actions.PendingAction


     * The RequestScroll method initiates a sequence of events to scroll an ListView field line to a specified position in the ListView field display area, moving other lines into and out of the display area as necessary.
     * @param pLine desired line
     * @param pScrollPolicy see setScrollPolicy
     */
    public void requestScroll(final int pLine, final int pScrollPolicy) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public void performAction() {
                if (pScrollPolicy==Constants.AF_TOP) {
                    ListView.this.scrollRowToVisible(ListView.this.getTotalLines()-1);
                    ListView.this.scrollRowToVisible(pLine-1);
View Full Code Here


     *         scrolling occurs if line is already in display area.
     * AF_MIDDLE  Scrolls line to middle outline field display line.
     * AF_TOP    Scrolls line to top outline field display line.
     */
    public void requestScroll(final int pLine, final int pScrollPolicy) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return "OutlineField.requestScroll(" + pLine + ", " + pScrollPolicy + ")";
            }
            @Override
View Full Code Here

     * interface of the outline field in Forte, but should not be needed -- the outline field should
     * automatically update itself. Hence, this method has been deprecated.
     * @deprecated this method should not be needed
     */
    public void refresh() {
      ActionMgr.addAction(new PendingAction(null) {
        @Override
        public void performAction() {
          redraw();
        }
      });
View Full Code Here

     *
     * CraigM:16/05/2008
     * @param pLine
     */
    public void setTopLine(final int pLine) {
      ActionMgr.addAction(new PendingAction(null) {
        @Override
        public String toString() {
          return "MultiLineTextField.setTopLine(" + pLine + ")";
        }
       
View Full Code Here

     * AF_TOP    Scrolls line to top outline field display line.
     *
     * CraigM:16/05/2008 - Copied from OutlineField.
     */
    public void requestScroll(final int pLine, final int pScrollPolicy) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return "TreeViewWidget.requestScroll(" + pLine + ", " + pScrollPolicy + ")";
            }
            @Override
View Full Code Here

      }
    }
   
    public void setElementList(Array_Of_ListElement<ListElement> elements){
        final Array_Of_ListElement<ListElement> data = CloneHelper.clone(elements, false);
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return "MenuList.setElementList(" + data + ")";
            }
            @Override
View Full Code Here

        finally {
          // TF:Mar 9, 2010:Changed this to perform its actions on the EDT
          final int defSet = defaultSet;
          final JPanel theForm = form;
          final Field[] theFields = fields;
          ActionMgr.addAction(new PendingAction(null) {
            @Override
            public void performAction() {
                    JMenuBar jmb = (JMenuBar) win.getJMenuBar();
                    if (jmb != null) {
                        MenuElement[] kids = jmb.getSubElements();
View Full Code Here

//        if (mcat == null) {
//            mcat = MsgCatalog.getInstance();
//        }
       
        // TF:Mar 9, 2010:Changed this to process it on the EDT
        ActionMgr.addAction(new PendingAction(null) {
      @Override
      public void performAction() {
          // TF:Mar 8, 2010:Re-used methods to reduce dependency on hard-coded strings
            int msgSet = getMsgSet(comp);
            int msgNumber = getMsgNumber(comp);
View Full Code Here

    public static void reloadLabelText(final JMenuItem comp, final MsgCatalog mcat, final int defaultSet) {
        if (comp == null || mcat == null) {
            return;
        }
        // TF:Mar 9, 2010:Changed this to process it on the EDT
        ActionMgr.addAction(new PendingAction(null) {
      @Override
      public void performAction() {
            Integer msgSet, msgNumber = null;
            msgSet = (Integer) comp.getClientProperty("qq_msgSet");
            msgNumber = (Integer) comp.getClientProperty("qq_msgNumber");
View Full Code Here

    public static void reloadLabelText(final JPopupMenu comp, final MsgCatalog mcat, final int defaultSet) {
        if (comp == null || mcat == null) {
            return;
        }
        // TF:Mar 9, 2010:Changed this to process it on the EDT
        ActionMgr.addAction(new PendingAction(null) {
      @Override
      public void performAction() {
            Integer msgSet, msgNumber = null;
            msgSet = (Integer) comp.getClientProperty("qq_msgSet");
            msgNumber = (Integer) comp.getClientProperty("qq_msgNumber");
View Full Code Here

TOP

Related Classes of DisplayProject.actions.PendingAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.