Terms and conditions
Preamble:
This Agreement, signed on Jun 10, 2012 [hereinafter: Effective Date] governs the relationship between the Enduser, a private person, (hereinafter: Licensee) and Paul N...
If you think the Android project Operation-Valkyrie listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package valkyrie.ui;
//fromwww.java2s.comimport android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TableLayout;
/**
*
* COPYRIGHT: Paul Neuhold, Laurenz Theuerkauf, Alexander Ritz, Jakob Schweighofer, Milo Tischler
* ? Milo Tischler, Jakob Schweighofer, Alexander Ritz, Paul Neuhold, Laurenz Theuerkauf
*
*//**
* Implementation of the UpdateableUI Interface.
* Every Component that should be updated when a Filter is switched is of this type.
*/publicclass UpdateableRelativeLayout extends RelativeLayout implements IUpdateableUI {
/**
* When a component of this type is created it adds itself to the LayoutManagers list of updateable components.
*
* @param context
* android standard
* @param attrs
* android standard
*/public UpdateableRelativeLayout(Context context, AttributeSet attrs) {
super(context, attrs);
LayoutManager.getInstance().registerUpdateableComponent(this);
}
/**
* Redraws this UI Component.
*
* @param uiElements
* RelativeLayout, containing all UI-Elements belonging to the Filter.
*/publicvoid redrawUI(TableLayout uiElements) {
if (uiElements == null)
return;
// remove all child elements from this layout
if(uiElements.getParent() != null) {
((RelativeLayout) uiElements.getParent()).removeView(uiElements);
}
// add possibly new elements to panel
this.addView(uiElements);
}
}