|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.core.windows; import java.awt.*; /** * Snapshot of window system model, which is passed to view. * It reflects the state of model in view convenient format, which is * responsibility of view to present GUI according of state of this snapshot. * * @author Peter Zavadsky */ public class WindowSystemSnapshot { private Rectangle mainWindowBoundsJoined; private Rectangle mainWindowBoundsSeparated; private int mainWindowFrameStateJoined; private int mainWindowFrameStateSeparated; private String toolbarConfigurationName; private int editorAreaState; private int editorAreaFrameState; private Rectangle editorAreaBounds; private ModeStructureSnapshot.ModeSnapshot activeMode; private ModeStructureSnapshot.ModeSnapshot maximizedMode; private ModeStructureSnapshot modeStructureSnapshot; private String projectName; public WindowSystemSnapshot() { } public void setMainWindowBoundsJoined(Rectangle mainWindowBoundsJoined) { this.mainWindowBoundsJoined = mainWindowBoundsJoined; } public Rectangle getMainWindowBoundsJoined() { return mainWindowBoundsJoined; } public void setMainWindowBoundsSeparated(Rectangle mainWindowBoundsSeparated) { this.mainWindowBoundsSeparated = mainWindowBoundsSeparated; } public Rectangle getMainWindowBoundsSeparated() { return mainWindowBoundsSeparated; } public void setMainWindowFrameStateJoined(int mainWindowFrameStateJoined) { this.mainWindowFrameStateJoined = mainWindowFrameStateJoined; } public int getMainWindowFrameStateJoined() { return this.mainWindowFrameStateJoined; } public void setMainWindowFrameStateSeparated(int mainWindowFrameStateSeparated) { this.mainWindowFrameStateSeparated = mainWindowFrameStateSeparated; } public int getMainWindowFrameStateSeparated() { return this.mainWindowFrameStateSeparated; } public void setEditorAreaBounds(Rectangle editorAreaBounds) { this.editorAreaBounds = editorAreaBounds; } /** Gets editor area bounds. */ public Rectangle getEditorAreaBounds() { return editorAreaBounds; } public void setEditorAreaState(int editorAreaState) { this.editorAreaState = editorAreaState; } /** Gets editor area state. */ public int getEditorAreaState() { return editorAreaState; } public void setEditorAreaFrameState(int editorAreaFrameState) { this.editorAreaFrameState = editorAreaFrameState; } public int getEditorAreaFrameState() { return this.editorAreaFrameState; } /** */ public void setActiveModeSnapshot(ModeStructureSnapshot.ModeSnapshot activeMode) { this.activeMode = activeMode; } /** Gets active mode. */ public ModeStructureSnapshot.ModeSnapshot getActiveModeSnapshot() { return activeMode; } /** */ public void setMaximizedModeSnapshot(ModeStructureSnapshot.ModeSnapshot maximizedMode) { this.maximizedMode = maximizedMode; } /** Gets maximized mode. */ public ModeStructureSnapshot.ModeSnapshot getMaximizedModeSnapshot() { return maximizedMode; } public void setToolbarConfigurationName(String toolbarConfigurationName) { this.toolbarConfigurationName = toolbarConfigurationName; } /** Toolbar config name. */ public String getToolbarConfigurationName() { return toolbarConfigurationName; } public void setModeStructureSnapshot(ModeStructureSnapshot modeStructureSnapshot) { this.modeStructureSnapshot = modeStructureSnapshot; } public ModeStructureSnapshot getModeStructureSnapshot() { return modeStructureSnapshot; } // XXX public void setProjectName(String projectName) { this.projectName = projectName; } public String getProjectName() { return projectName; } public ModeStructureSnapshot.ModeSnapshot findModeSnapshot(ModeImpl mode) { if(mode == null) { return null; } if(modeStructureSnapshot != null) { return ((ModeStructureSnapshot)modeStructureSnapshot).findModeSnapshot(mode.getName()); } return null; } public String toString() { return super.toString() + "[modeStructure=" + modeStructureSnapshot // NOI18N + ",\nactiveMode=" + activeMode + ",\nmaximizedMode=" + maximizedMode + "]"; // NOI18N } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.