public abstract class ViewGroupMixIn extends Object
ViewGroup
to be used as a "mix-in".
Not meant for a consumption from outside ViewGroup
s.
private String primaryView;
private CopyOnWriteArrayList<View> views;
private ViewsTabBar viewsTabBar;
private transient ViewGroupMixIn = new ViewGroupMixIn() { List<View> views() { return views; } ... }
ItemGroupMixIn
Modifier | Constructor and Description |
---|---|
protected |
ViewGroupMixIn(ViewGroup owner) |
Modifier and Type | Method and Description |
---|---|
void |
addView(View v) |
boolean |
canDelete(View view) |
void |
deleteView(View view) |
View |
getPrimaryView()
Returns the primary
View that renders the top-page of Hudson. |
View |
getView(String name)
Gets a view by the specified name.
|
Collection<View> |
getViews()
Gets the read-only list of all
View s. |
void |
onViewRenamed(View view,
String oldName,
String newName) |
protected abstract String |
primaryView()
Gets primary view of the mix-in.
|
protected abstract void |
primaryView(String newName)
Sets the primary view.
|
protected abstract List<View> |
views()
Returns all views in the group.
|
protected ViewGroupMixIn(ViewGroup owner)
@Nonnull protected abstract List<View> views()
@CheckForNull protected abstract String primaryView()
null
if there is no primary one defined.protected abstract void primaryView(String newName)
newName
- Name of the primary view to be set.
null
to make the primary view undefined.public void addView(@Nonnull View v) throws IOException
IOException
public void deleteView(@Nonnull View view) throws IOException
IOException
@CheckForNull public View getView(@CheckForNull String name)
ViewGroup
s if required.name
- Name of the viewnull
if it is missing@Exported public Collection<View> getViews()
View
s.@Exported public View getPrimaryView()
View
that renders the top-page of Hudson.Copyright © 2004–2019. All rights reserved.