@Override public void propertyChanged(String key, Object oldValue, Object newValue, KrollProxy proxy) { // TODO Auto-generated method stub if (key.equals(TiC.PROPERTY_TITLE)) { actionBar.setTitle(TiConvert.toString(newValue)); } else if (key.equals(TiC.PROPERTY_SWIPEABLE)) { swipeable = TiConvert.toBoolean(newValue); } else { super.propertyChanged(key, oldValue, newValue, proxy); } }
@Override public void processProperties(KrollDict d) { // TODO Auto-generated method stub super.processProperties(d); if (d.containsKey(TiC.PROPERTY_TITLE)) { actionBar.setTitle(d.getString(TiC.PROPERTY_TITLE)); } if (d.containsKey(TiC.PROPERTY_SWIPEABLE)) { swipeable = d.getBoolean(TiC.PROPERTY_SWIPEABLE); } }