Examples of ViewInstance


Examples of com.pcmsolutions.gui.desktop.ViewInstance

*/
public class SystemViewFactory {
    public static ViewInstance providePropertiesView() {
        final DesktopName name = new DesktopName(PropertiesPanel.class, SystemPathFactory.providePropertiesPath());
        final ViewPath vp = new ViewPath(ZDesktopManager.dockPROPERTIES, name);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    PropertiesPanel pp = new PropertiesPanel(ZoeosPreferences.getPropertyList(), Zoeos.getInstance());
                    return pp;
                } catch (Exception e) {
View Full Code Here

Examples of com.pcmsolutions.gui.desktop.ViewInstance

    public static ViewInstance provideDefaultView(final DeviceContext device) {
        final DesktopName[] names = ViewFactory.provideDefaultDesktopNames(device);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);

        // final DesktopName name = new DesktopName(Object.class, PathFactory.provideDevicePath(device));
        return new ViewInstance() {
           // private transient DefaultDeviceEnclosurePanel view;

            public JComponent getView() throws ComponentGenerationException {
                DefaultDeviceEnclosurePanel view;
              //  if (view == null) {
View Full Code Here

Examples of com.pcmsolutions.gui.desktop.ViewInstance

    }

    public static ViewInstance provideDefaultView(final ReadablePreset p) {
        final DesktopName[] names = provideDefaultDesktopNames(p);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    dep.init(p.getDeviceContext(), new DefaultPresetViewerPanel(p));
                    return dep;
View Full Code Here

Examples of com.pcmsolutions.gui.desktop.ViewInstance

    }

    public static ViewInstance provideDefaultView(final ContextEditablePreset p) {
        final DesktopName[] names = provideDefaultDesktopNames(p);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    dep.init(p.getDeviceContext(), new DefaultPresetEditorPanel(p));
                    return dep;
View Full Code Here

Examples of com.pcmsolutions.gui.desktop.ViewInstance

    }

    public static ViewInstance provideDefaultView(final ReadablePreset.ReadableVoice voice, final boolean empty) {
        final DesktopName[] names = provideDefaultDesktopNames(voice);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    if (empty) {
                        EmptyReadableVoicePanel evp = new EmptyReadableVoicePanel();
View Full Code Here

Examples of com.pcmsolutions.gui.desktop.ViewInstance

    }

    public static ViewInstance provideDefaultView(final ReadablePreset.ReadableVoice voice, final int sections, final TitleProvider tp) {
        final DesktopName[] names = provideDefaultDesktopNames(voice, sections);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    VoiceSectionPanel vsp = new VoiceSectionPanel(tp, ViewIndexFactory.getVoiceSectionIndex(sections));
                    int gridIndex = 0;
View Full Code Here

Examples of com.pcmsolutions.gui.desktop.ViewInstance

    }

    public static ViewInstance provideDefaultView(final ContextEditablePreset.EditableVoice[] voices, final boolean empty) {
        final DesktopName[] names = provideDefaultDesktopNames(voices);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    if (empty) {
                        EmptyEditableVoicePanel evp = new EmptyEditableVoicePanel();
View Full Code Here

Examples of com.pcmsolutions.gui.desktop.ViewInstance

    }

    public static ViewInstance provideDefaultView(final ContextEditablePreset.EditableVoice[] voices, final int sections, final TitleProvider tp) {
        final DesktopName[] names = provideDefaultDesktopNames(voices, sections);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    int gridIndex = 0;
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    VoiceSectionPanel vsp = new VoiceSectionPanel(tp, ViewIndexFactory.getVoiceSectionIndex(sections));
View Full Code Here

Examples of com.pcmsolutions.gui.desktop.ViewInstance

    // PALETTES
    public static ViewInstance provideDeviceView(final DeviceContext device) {
        final DesktopName name = new DesktopName(DevicePanel.class, PathFactory.provideDevicePath(device));
        final ViewPath vp = new ViewPath(ZDesktopManager.dockDEVICES, name);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DefaultDeviceEnclosurePanel dep = new DefaultDeviceEnclosurePanel();
                    DevicePanel dp = new DevicePanel(device);
                    dep.init(device, dp);
View Full Code Here

Examples of com.pcmsolutions.gui.desktop.ViewInstance

    }

    public static ViewInstance providePropertiesView(final DeviceContext device) {
        final DesktopName name = new DesktopName(PropertiesPanel.class, PathFactory.providePropertiesPath(device));
        final ViewPath vp = new ViewPath(ZDesktopManager.dockPROPERTIES, name);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    ArrayList props = new ArrayList();
                    props.addAll(device.getDevicePreferences().getPropertyList());
                    props.addAll(device.getRemotePreferences().getPropertyList());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.