JX Application Framework
|
#include <JXCheckboxGroup.h>
Public Member Functions | |
~JXCheckboxGroup () override | |
bool | Includes (JXCheckbox *cb) const |
void | Add (JXCheckbox *cb) |
void | Insert (const JIndex index, JXCheckbox *cb) |
void | Remove (JXCheckbox *cb) |
![]() | |
JContainer () | |
JContainer (const JContainer &source) | |
JContainer & | operator= (const JContainer &source) |
![]() | |
JCollection () | |
JCollection (const JCollection &source) | |
~JCollection () override | |
JCollection & | operator= (const JCollection &source) |
JSize | GetItemCount () const |
bool | IsEmpty () const |
bool | IndexValid (const JIndex index) const |
JIndex | GetIndexFromEnd (const JIndex index) const |
JString | ToString () const override |
![]() | |
JBroadcaster () | |
virtual | ~JBroadcaster () |
JBroadcaster & | operator= (const JBroadcaster &source) |
bool | HasSenders () const |
JSize | GetSenderCount () const |
bool | HasRecipients () const |
JSize | GetRecipientCount () const |
template<class T > | |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
Protected Member Functions | |
JXCheckboxGroup () | |
JXCheckboxGroup (const JPtrArray< JXCheckbox > &cbList) | |
bool | AllChecked () const |
bool | AllUnchecked () const |
bool | AllDisabled () const |
bool | CheckboxDisabled (const JIndex index) const |
bool | FindCheckbox (JBroadcaster *obj, JIndex *index) const |
JXCheckbox * | GetCheckbox (const JIndex index) const |
JPtrArray< JXCheckbox > * | GetCheckboxList () const |
void | Receive (JBroadcaster *sender, const Message &message) override |
virtual void | EnforceConstraints (const JIndex cbIndex)=0 |
void | ReceiveGoingAway (JBroadcaster *sender) override |
![]() | |
void | InstallCollection (JCollection *list) |
const JCollection * | GetList () const |
![]() | |
void | ItemAdded () |
void | ItemRemoved () |
void | SetItemCount (const JSize newItemCount) |
![]() | |
JBroadcaster (const JBroadcaster &source) | |
void | ListenTo (const JBroadcaster *sender) |
void | StopListening (const JBroadcaster *sender) |
void | ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember) |
void | StopListening (const JBroadcaster *sender, const std::type_info &messageType) |
template<class T > | |
void | Send (JBroadcaster *recipient, const T &message) |
template<class T > | |
void | Broadcast (const T &message) |
void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
void | BroadcastWithFeedback (Message *message) |
virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
This defines the concept of a group of checkboxes that are constrained in some way. Derived classes must implement the actual constraints. Derived classes must implement the following function: EnforceConstraints The value passed in is the index of the checkbox that changed. The function should change the state of the checkboxes to maintain the constraints.
|
override |
|
protected |
|
protected |
void JXCheckboxGroup::Add | ( | JXCheckbox * | cb | ) |
|
protected |
|
protected |
Returns true if all checkboxes are either hidden or inactive.
|
protected |
Returns true if the checkbox is either hidden or inactive.
|
protectedpure virtual |
Implemented in JXAtLeastOneCBGroup, and JXAtMostOneCBGroup.
|
protected |
This takes a JBroadcaster because one is not allowed to downcast from a virtual base class, so there is no other way for Receive() to obtain a JXCheckbox*.
|
inlineprotected |
|
inlineprotected |
|
inline |
void JXCheckboxGroup::Insert | ( | const JIndex | index, |
JXCheckbox * | cb | ||
) |
|
overrideprotectedvirtual |
Keep the number of items up to date.
Reimplemented from JContainer.
|
overrideprotectedvirtual |
The given sender has been deleted.
Reimplemented from JBroadcaster.
void JXCheckboxGroup::Remove | ( | JXCheckbox * | cb | ) |