Revision 6877 trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/ViewStackSupport.java

View differences:

ViewStackSupport.java
51 51
import com.iver.andami.PluginServices;
52 52
import com.iver.andami.persistence.generate.PluginsStatus;
53 53
import com.iver.andami.plugins.config.generate.Menu;
54
import com.iver.andami.ui.mdiManager.View;
54
import com.iver.andami.ui.mdiManager.IWindow;
55 55
import com.iver.andami.ui.mdiManager.ViewInfo;
56 56

  
57 57
/**
......
71 71
		this.vis = vis;
72 72
	}
73 73

  
74
	public void add(View v, final ActionListener listener) {
74
	public void add(IWindow v, final ActionListener listener) {
75 75
		vistas.add(v);
76 76
		ViewInfo vi = vis.getViewInfo(v);
77 77
		int id = vi.getId();
......
83 83
		PluginServices.getMainFrame().addMenu(m, listener, PluginServices.getPluginServices(this).getClassLoader() );
84 84
	}
85 85
	
86
	public void remove(View v){
86
	public void remove(IWindow v){
87 87
		Menu m = (Menu) viewMenu.get(v);
88 88
		if (m == null) return;
89 89
		PluginServices.getMainFrame().removeMenu(m);
......
95 95
	 * FJP: No se usa, y no s? para qu? estaba pensado. 
96 96
	 */
97 97
	public void ctrltab(){
98
		View v = (View) vistas.remove(vistas.size() - 1);
98
		IWindow v = (IWindow) vistas.remove(vistas.size() - 1);
99 99
		vistas.add(0, v);
100 100
	}
101 101
	
102
	public View getActiveView(){
102
	public IWindow getActiveView(){
103 103
		if (vistas.size() == 0) return null;
104 104
        int index = vistas.size()-1;
105 105
        while (index >= 0)
106 106
        {
107
            View aux = (View) vistas.get(index);
107
            IWindow aux = (IWindow) vistas.get(index);
108 108
            if (!aux.getViewInfo().isPalette())
109 109
            {
110 110
                System.err.println("getActiveView = " + aux.getViewInfo().getTitle());
......
122 122
     * posici?n.
123 123
     * @param v
124 124
     */
125
    public void setActive(View v)
125
    public void setActive(IWindow v)
126 126
    {
127
        View copia = null;
127
        IWindow copia = null;
128 128
        boolean bCopiar = false;
129 129
        // Si es de tipo palette, no se pone como activa.
130 130
        // De esta forma, nunca nos la devolver?.... Bueno, 
......
135 135
        
136 136
        for (int i=0; i < vistas.size(); i++)
137 137
        {
138
            View aux = (View) vistas.get(i);
138
            IWindow aux = (IWindow) vistas.get(i);
139 139
            if (aux == v)
140 140
            {
141 141
                copia = aux;
......
145 145
            {
146 146
                if (i < vistas.size()-1)
147 147
                {
148
                    View siguiente = (View) vistas.get(i+1);
148
                    IWindow siguiente = (IWindow) vistas.get(i+1);
149 149
                    vistas.set(i,siguiente);
150 150
                }
151 151
                else // La ?ltima

Also available in: Unified diff