Package jsynoptic.builtin.ui

Examples of jsynoptic.builtin.ui.HistoryTextPropertiesPanel


            return addDataSource((DataSource) o);
        }
        if (action.equals(resources.getString("Properties..."))) {
            new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
                protected void doAction() {
                    HistoryTextPropertiesPanel panel = (HistoryTextPropertiesPanel) createPanel();

                    /**
                     * Only one shape properties dialog box can be displayed at
                     * once When user opens a dialog box properties while
                     * another one is still displayed: this last dislaog box is
                     * closed
                     */
                    Point oldLocation = null;
                    if (currentDialogBox != null) {
                        oldLocation = currentDialogBox.getBounds().getLocation();
                        currentDialogBox.dispose();
                    }
                   
                    ArrayList shapes = new ArrayList();
                   
                    shapes.add(HistoryTextShape.this);
                   
                    AbstractShapePropertiesDialogBox optionDialog = new AbstractShapePropertiesDialogBox(JSynoptic.gui
                            .getOwner(), panel, panel.getShapeName() + resources.getString("propertiesTitle"),
                            shapes, JSynoptic.gui.getActiveComponent());

                    if (oldLocation != null) {
                        optionDialog.setLocation(oldLocation);
                    }
View Full Code Here


     * (non-Javadoc)
     *
     * @see jsynoptic.builtin.Abstract1DShape#createPanel()
     */
    public JPropertiesPanel createPanel() {
        return new HistoryTextPropertiesPanel(Builtin.resources.getString("History"));
    }
View Full Code Here

TOP

Related Classes of jsynoptic.builtin.ui.HistoryTextPropertiesPanel

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.