Package snap.view
Interface ViewHost
- All Known Implementing Classes:
BoxView
,ChildView
,CollapseView
,ColView
,GameView
,GridView
,PageView
,RowView
,ScaleBox
,Scroller
,ScrollView
,SplitView
,SpringView
,StackView
,SwitchView
,TitleView
public interface ViewHost
An interface for Views primarily intended to hold other (arbitrary) views.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Adds the given view to the end of this view's guest list.void
ViewHost method: Adds the given view to this host's guest (children) list at given index.static void
fromXMLGuests
(ViewHost aHost, XMLArchiver anArchiver, XMLElement anElement) XML unarchival of ViewHost.Guests.getGuest
(int anIndex) ViewHost method: Returns the guest view at given index.int
ViewHost method: Returns the number of guest views.default View[]
Returns the array of guests.static View[]
Returns the guests array.static ViewHost
Returns whether given view parent is a ViewHost and view is one of its guests.static int
indexInHost
(View aView) ViewHost helper method.static int
indexOfGuest
(ViewHost aHost, View aView) ViewHost helper method.removeGuest
(int anIndex) ViewHost method: Remove's guest at given index from this host's guest (children) list.default int
removeGuest
(View aView) Removes the given child from this view's children list.static void
toXMLGuests
(ViewHost aHost, XMLArchiver anArchiver, XMLElement anElement) XML archival of ViewHost.Guests.
-
Method Details
-
getGuestCount
int getGuestCount()ViewHost method: Returns the number of guest views. -
getGuest
ViewHost method: Returns the guest view at given index. -
addGuest
ViewHost method: Adds the given view to this host's guest (children) list at given index. -
removeGuest
ViewHost method: Remove's guest at given index from this host's guest (children) list. -
addGuest
Adds the given view to the end of this view's guest list. -
removeGuest
Removes the given child from this view's children list. -
getGuests
Returns the array of guests. -
getGuests
Returns the guests array. -
getHost
Returns whether given view parent is a ViewHost and view is one of its guests. -
indexOfGuest
ViewHost helper method. -
indexInHost
ViewHost helper method. -
toXMLGuests
XML archival of ViewHost.Guests. -
fromXMLGuests
XML unarchival of ViewHost.Guests.
-