Code example for TableRow

Methods: setVisibility

0
		return propKey;
	} 
	private void updateUI() { 
		// DIO 
		if (this.mChannel.getDevice().getDIO()==null || this.mChannel.getDevice().getDIO().getProperty("out1")==null){
			trDO.setVisibility(View.GONE);
			tvDO.setVisibility(View.GONE);
			stDO.setVisibility(View.GONE);
		}else if (this.mChannel.getDevice().getDIO().getProperty("out1").equals("on")) {
			this.stDO.setActivated(true);
			this.stDO.setChecked(true);
		}else if (this.mChannel.getDevice().getDIO().getProperty("out1").equals("off")) {
			this.stDO.setActivated(true);
			this.stDO.setChecked(false);
		} 
		 
		// Preset 
		if (this.mChannel.getDevice().getPreset()==null){
			tvPreset.setVisibility(View.GONE);	// Caption
			gvPreset.setVisibility(View.GONE);	// Content
		}