    001package org.vishia.commander;
    002
    003
    004import org.vishia.gral.base.GralWidget;
    005import org.vishia.gral.ifc.GralUserAction;
    006import org.vishia.util.KeyCode;
    007
    008/**This class manages the window of the Java commander
    009 * @author Hartmut Schorrig
    010 *
    011 */
    012public class FcmdWindowMng
    013{
    014  public final Fcmd main;
    015
    016  public FcmdWindowMng(Fcmd main)
    017  { this.main = main;
    018  }
    019
    020
    021
    022  GralUserAction actionWindFullOut = new GralUserAction("actionWindFullOut")
    023  {
    024    boolean isFullOut = false;
    025    @Override public boolean userActionGui(int key, GralWidget widgd, Object... params)
    026    { if(KeyCode.isControlFunctionMouseUpOrMenu(key)){
    027        if(isFullOut){main.gui.setFrameAreaBorders(30, 65, 60, 80); isFullOut = false; }
    028        else {main.gui.setFrameAreaBorders(10, 55, 30, 99); isFullOut = true; }
    029        return true;
    030      } else return false;
    031    }
    032
    033  };
    034
    035}