super( label, false, style, -1, -1 ); if (choiceType == Choice.EXCLUSIVE) {  } else if (choiceType == Choice.MULTIPLE) { this.isMultiple = true;  } else if (choiceType == Choice.POPUP) { this.isPopup = true; this.isPopupClosed = true; this.popupItem = new IconItem( null, null, style ); this.popupItem.setImageAlign( Graphics.RIGHT ); this.popupItem.setAppearanceMode( BUTTON ); this.popupItem.parent = this;  } else if (choiceType == Choice.IMPLICIT && allowImplicit ) { this.isImplicit = true; this.autoFocusEnabled = true; } else {  throw new IllegalArgumentException("invalid choiceType [" + choiceType + "] - IMPLICIT=" + Choice.IMPLICIT + ".");    } this.choiceType = choiceType; for (int i = 0; i < items.length; i++) { ChoiceItem item = items[i]; append( item ); }
this( label, choiceType, new String[0], null, null, false );
	public ChoiceGroup( String label, int choiceType, ChoiceItem[] items, Style style, boolean allowImplicit )	{		super( label, false, style, -1, -1 );		if (choiceType == Choice.EXCLUSIVE) {			//this.isExclusive = true;		} else if (choiceType == Choice.MULTIPLE) {			this.isMultiple = true;		//#ifdef polish.usePopupItem		} else if (choiceType == Choice.POPUP) {			this.isPopup = true;			this.isPopupClosed = true;			this.popupItem = new IconItem( null, null, style );			this.popupItem.setImageAlign( Graphics.RIGHT );			this.popupItem.setAppearanceMode( BUTTON );			this.popupItem.parent = this;		//#endif		} else if (choiceType == Choice.IMPLICIT && allowImplicit ) {			this.isImplicit = true;			this.autoFocusEnabled = true;		} else {			//#ifdef polish.verboseDebug				throw new IllegalArgumentException("invalid choiceType [" + choiceType + "] - IMPLICIT=" + Choice.IMPLICIT + ".");			//#else				//# throw new IllegalArgumentException();			//#endif		}		this.choiceType = choiceType;		for (int i = 0; i < items.length; i++) {			ChoiceItem item = items[i];			append( item );		}	}