Package org.gjt.sp.jedit.manager
Class ViewManagerImpl
- java.lang.Object
-
- org.gjt.sp.jedit.manager.ViewManagerImpl
-
- All Implemented Interfaces:
ViewManager
public class ViewManagerImpl extends java.lang.Object implements ViewManager
This class contains view management code, those methods are not public and must only be used by jEdit. The public interface isViewManager- Since:
- 5.6pre1
-
-
Field Summary
Fields Modifier and Type Field Description static View[]EMPTY_VIEW_ARRAY
-
Constructor Summary
Constructors Constructor Description ViewManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddViewToList(View view)voidforEach(java.util.function.Consumer<? super View> action)Performs the given action for each view.ViewgetActiveView()Returns the currently focused view.ViewgetActiveViewInternal()Returns the internal active view, which might be null.ViewgetFirst()ViewgetLast()java.util.List<View>getViews()Returns an array of all open views.voidremove(View view)voidsetActiveView(View view)intsize()Returns the number of open views.
-
-
-
Field Detail
-
EMPTY_VIEW_ARRAY
public static final View[] EMPTY_VIEW_ARRAY
-
-
Method Detail
-
getViews
public java.util.List<View> getViews()
Returns an array of all open views.- Specified by:
getViewsin interfaceViewManager
-
forEach
public void forEach(java.util.function.Consumer<? super View> action)
Performs the given action for each view.- Specified by:
forEachin interfaceViewManager- Parameters:
action- The action to be performed for each element- Throws:
java.lang.NullPointerException- if the specified action is null
-
size
public int size()
Returns the number of open views.- Specified by:
sizein interfaceViewManager
-
getFirst
public View getFirst()
- Specified by:
getFirstin interfaceViewManager
-
getLast
public View getLast()
- Specified by:
getLastin interfaceViewManager
-
getActiveView
public View getActiveView()
Returns the currently focused view.- Specified by:
getActiveViewin interfaceViewManager
-
setActiveView
public void setActiveView(View view)
- Specified by:
setActiveViewin interfaceViewManager
-
getActiveViewInternal
@Nullable public View getActiveViewInternal()
Returns the internal active view, which might be null.- Specified by:
getActiveViewInternalin interfaceViewManager
-
addViewToList
public void addViewToList(View view)
-
remove
public void remove(View view)
-
-