Class CardSlot
- All Implemented Interfaces:
KeyListener, MouseListener, EventListener, AutoConfigurable, Buildable, Configurable, PropertyNameSource, ComponentDescription, ValidityChecker, Translatable, Auditable, ImageSearchTarget, SearchTarget
A CardSlot is identical to a PieceSlot except that it is initialized
with a card-like GamePiece.
-
Nested Class Summary
Nested classes/interfaces inherited from class PieceSlot
PieceSlot.PanelNested classes/interfaces inherited from class Widget
Widget.MyCellRendererNested classes/interfaces inherited from interface AutoConfigurable
AutoConfigurable.Util -
Field Summary
Fields inherited from class PieceSlot
c, expanded, FONT, GP_ID, gpId, gpidSupport, height, panel, PIECE_PALETTE_SCALE, pieceDefinition, widthFields inherited from class Widget
buildElement, description, DESCRIPTION, HEIGHT, NAME, parent, WIDTHFields inherited from class AbstractConfigurable
changeSupport, config, localizedName, myI18nData, nameModifier and TypeFieldDescriptionprotected PropertyChangeSupportprotected Configurerprotected Stringprotected ComponentI18nDataprotected StringFields inherited from class AbstractBuildable
buildComponents, validatorFields inherited from interface Configurable
NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class PieceSlot
addImageNamesRecursively, addTo, build, clearCache, clearExpandedPiece, copyFrom, doPopup, getAllowableConfigureComponents, getAttributeDescriptions, getAttributeNames, getAttributeTypes, getAttributeValueString, getBuildElement, getComponent, getConfigureComponents, getConfigureName, getExpandedPiece, getGpId, getHelpFile, getI18nData, getLocalizedConfigureName, getName, getPiece, getPieceDefinition, getPreferredSize, getScale, isValid, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, paint, removeFrom, setAttribute, setGpId, setGpidSupport, setPiece, startDrag, updateGpId, updateGpId, updateGpIdModifier and TypeMethodDescriptionvoidAdds all images used by this component AND any subcomponents to the collectionvoidAdds this component to its parent.voidWhen building a PieceSlot, the text contents of the XML element are parsed into a String.voidprotected voidprotected voidprotected voidClass<?>[]The allowable Configurable components of a Widget determined by its parent's Child-Allowable method.String[]Return an array of Strings describing the attributes of this object.String[]Lists all the buildFile (XML) attribute names for this component.Class<?>[]Return the Class for the attributes of this object.Called by theBuildable.getBuildElement(Document)method to write the attributes into an XML elementgetBuildElement(Document doc) ConfigureName is used, in particular, by the Editor to track the names of components, and is preferred byUniqueIdManager.protected GamePieceReturn defined GamePiece with prototypes fully expanded.getGpId()getName()getPiece()Return defined GamePiece with prototypes unexpanded.doublegetScale()booleanisValid()Has the PieceSlot been rendered for the first time yet?voidvoidvoidvoidvoidvoidvoidvoidvoidvoidremoveFrom(Buildable parent) Remove this component from its parentvoidsetAttribute(String name, Object value) Sets a buildFile (XML) attribute value for this component.voidvoidvoidprotected voidvoidAllocate a new gpid to this PieceSlot, plus to any PlaceMarker or Replace traits.voidUpdate the gpid for this PieceSlot, using the givenGpIdSupportto generate the new id.voidupdateGpId(GamePiece piece) Allocate new gpids in the given GamePieceMethods inherited from class Widget
getChildAllowableConfigureComponents, getDescription, getParent, hasScalablePieces, hasScale, rebuildModifier and TypeMethodDescriptionClass<?>[]Allowable components for a CHILD of this class - default is to ask our parent for this list.booleanbooleanhasScale()protected voidrebuild()Perform the build of thisBuildablecomponent using the element stored from when the theWidget.build(Element)method was invokedMethods inherited from class AbstractConfigurable
add, addPropertyChangeListener, getAttributeVisibility, getExpressionList, getFormattedStringList, getI18nPrefix, getMenuTextList, getNamedKeyStrokeList, getPropertyList, getTypeName, remove, removePropertyChangeListener, setAllAttributesUntranslatable, setAttributeTranslatable, setConfigureNameModifier and TypeMethodDescriptionvoidSet the owning translatable of this componentvoidAdd a PropertyChangeListener.getAttributeVisibility(String name) By default, all attributes are visibleprotected StringReturns the name of the configurable type for display purposes.voidRemove a Buildable object from this objectvoidprotected voidSets all attributes untranslatable.protected voidsetAttributeTranslatable(String attr, boolean b) Over-ride the default attribute translatability.voidSets the name and fires a PropertyChangeEventMethods inherited from class AbstractBuildable
buildString, getAllDescendantComponentsOf, getAncestor, getBuildables, getBuildComponents, getComponents, getComponentsOf, getNonFolderAncestor, getPropertyNames, setAncestor, validateModifier and TypeMethodDescription<T> List<T> getAllDescendantComponentsOf(Class<T> target) Recursively descend the build tree and return aListof all components that are instances of the given classDeprecated, for removal: This API element is subject to removal in a future version.<T> Enumeration<T> getComponents(Class<T> target) Deprecated, for removal: This API element is subject to removal in a future version.UseAbstractBuildable.getComponentsOf(Class)instead.<T> List<T> getComponentsOf(Class<T> target) Override this method to provide a list of properties to be exposed for use by expressions in the module.voidsetAncestor(Buildable ancestor) voidvalidate(Buildable target, ValidationReport report) Methods inherited from class AbstractImageFinder
addLocalImageNames, getAllImageNames, getLocalImageNamesModifier and TypeMethodDescriptionvoidClasses extending AbstractImageFinder should override this method in order to add the names of any image files they use to the collection.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Auditable
getComponentName, getComponentTypeNameMethods inherited from interface Buildable
isMandatory, isMovable, isUniqueModifier and TypeMethodDescriptiondefault booleanIs this component a reqired component within its parent?default booleanIs this component allowed to be moved around the Configure Tree?default booleanisUnique()Does this component need to be unique within it's parent?
-
Constructor Details
-
CardSlot
public CardSlot() -
CardSlot
-
-
Method Details
-
getConfigureTypeName
-
getConfigurer
Description copied from class:AbstractConfigurable- Specified by:
getConfigurerin interfaceConfigurable- Overrides:
getConfigurerin classPieceSlot- Returns:
- Configurer for this component
-
AbstractBuildable.getBuildables()instead.