本文整理汇总了PHP中Label::setClass方法的典型用法代码示例。如果您正苦于以下问题:PHP Label::setClass方法的具体用法?PHP Label::setClass怎么用?PHP Label::setClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Label
的用法示例。
在下文中一共展示了Label::setClass方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Slide
$img_twitter->setImage("img/Android/hdpi/ic_twitter.png");
$img_twitter->setClass("image.menu");
$lbl_twitter = new Label();
$lbl_twitter->setClass("label.MenuOption");
$lbl_twitter->setCaption("Twitter");
$table_twitter->onTap(twitte());
$table_twitter->addControl($img_twitter, 1, 1, 1, 1, "Center", "Middle");
$table_twitter->addControl($lbl_twitter, 1, 2, 1, 1, "Left", "Middle");
$table_map = new Table();
$table_map->setClass("table.MenuOption");
$table_map->setColumnsStyle("20%;80%");
$img_map = new Image();
$img_map->setImage("img/Android/hdpi/ic_map.png");
$img_map->setClass("image.menu");
$lbl_map = new Label();
$lbl_map->setClass("label.MenuOption");
$lbl_map->setCaption("Map");
$table_map->onTap(map());
$table_map->addControl($img_map, 1, 1, 1, 1, "Center", "Middle");
$table_map->addControl($lbl_map, 1, 2, 1, 1, "Left", "Middle");
$mainTable->addControl($table_home, 2, 1);
$mainTable->addControl($table_facebook, 3, 1);
$mainTable->addControl($table_twitter, 4, 1);
$mainTable->addControl($table_map, 5, 1);
$win->addControl($mainTable);
function Slide()
{
$token = new InputText(80);
$win->Open("Home");
}
function home()
示例2: budget
$maintable = new Table();
$maintable->setRowsStyle("100%");
$maintable->setWidth("100%");
$maintable->setHeight("100%");
$maintable->setClass("table.white");
$label_budget = new Label();
$label_budget->setCaption("Add Budget");
$label_budget->setClass("label.blue");
$label_budget->onTap(budget());
$label_income = new Label();
$label_income->setCaption("Income");
$label_income->setClass("label.green");
$label_income->onTap(income());
$label_outcome = new Label();
$label_outcome->setCaption("Outcome");
$label_outcome->setClass("label.red");
$label_outcome->onTap(outcome());
$maintable->addControl($label_budget, 1, 1, 1, 1, "Center", "Middle");
$maintable->addControl($label_income, 2, 1, 1, 1, "Center", "Middle");
$maintable->addControl($label_outcome, 3, 1, 1, 1, "Center", "Middle");
$win->addControl($maintable);
function budget()
{
$win->Open("Budget");
}
function income()
{
$moveType = new InputText();
$moveType->setValue("0");
$win->Open("IncomeOutcome", $moveType);
}
示例3: ClientStart
$img_login->setClass("imagemenu");
$lbl_login = new Label();
$lbl_login->setCaption("Login");
$lbl_login->setClass("labelMenuOption");
$table_login->onTap(login());
$table_login->addControl($img_login, 1, 1, 1, 1, "Center", "Middle");
$table_login->addControl($lbl_login, 1, 2, 1, 1, "Left", "Middle");
$table_logout = new Table();
$table_logout->setClass("tableMenuOption");
$table_logout->setColumnsStyle("20%;80%");
$img_logout = new Image();
$img_logout->setImage("img/Android/hdpi/ic_logout.png");
$img_logout->setClass("imagemenu");
$lbl_logout = new Label();
$lbl_logout->setCaption("Logout");
$lbl_logout->setClass("labelMenuOption");
$table_logout->onTap(logout());
$table_logout->addControl($img_logout, 1, 1, 1, 1, "Center", "Middle");
$table_logout->addControl($lbl_logout, 1, 2, 1, 1, "Left", "Middle");
$table_space = new Table();
$table->addControl($table_space, 1, 1);
$table->addControl($table_home, 2, 1);
$table->addControl($table_account, 3, 1);
$table->addControl($table_transactions, 4, 1);
$table->addControl($table_login, 5, 1);
$table->addControl($table_settings, 6, 1);
$table->addControl($table_logout, 7, 1);
$token = new InputText(80);
$win->addControl($table);
function ClientStart()
{
示例4: Table
$table->setWidth("100%");
$table->setHeight("100%");
$table->setClass("table.white");
$table_form = new Table();
$table_form->setRowsStyle("76dip;76dip");
$table_form->setClass("table.forms");
$username = new InputEmail();
$username->setClass("input.form");
$username->setInviteMessage("E-Mail");
$password = new InputText();
$password->setClass("input.form");
$password->setInviteMessage("Password");
$password->setIsPassword(true);
$label = new Label();
$label->setCaption("OR");
$label->setClass("label.big");
$btn_save = new Button();
$btn_save->setCaption("Log in");
$btn_save->onTap(login());
$btn_save->setClass("button.blue");
$btn_register = new Button();
$btn_register->setCaption("Sign up");
$btn_register->onTap(register());
$btn_register->setClass("button.blue");
$table_form->addControl($username, 1, 1);
$table_form->addControl($password, 2, 1);
$table_button = new Table();
$table_button->addControl($btn_save, 1, 1);
$table_button->addControl($label, 2, 1, 1, 1, "Center", "Middle");
$table_button->addControl($btn_register, 3, 1);
$table->addControl($table_form, 1, 1);
示例5: Slide
}*/
/***
* Listado de categorias.
*/
$win = new SDPanel();
$win->setCaption("Tasks list");
$table = new Table();
$table->setClass("table.Menu");
$table_home = new Table();
$table_home->setClass("table.MenuOption");
$table_home->setColumnsStyle("20%;80%");
$img_home = new Image();
$img_home->setImage("img/ico_thumb.png");
$img_home->setClass("ImageMenu");
$lbl_home = new Label();
$lbl_home->setClass("LabelMenuOption");
$lbl_home->setCaption("Home");
$table_home->onTap(home());
//$table_home -> addControl($img_home,1,1,1,1,"Center","Middle");
$table_home->addControl($lbl_home, 1, 2, 1, 1, "Left", "Middle");
$table->addControl($table_home, 2, 1);
$win->addControl($table);
$win->Render();
function Slide()
{
$win->Open("mainThumb");
}
function home()
{
$win->Open("mainThumb");
}
示例6: InputText
$label_income_month->setClass("label.black");
$input1 = new InputText();
$input1->setReadOnly(true);
$input1->setClass("label.black");
$label_green_bis = new Label();
$label_green_bis->setClass("label.income");
$label_red_bis = new Label();
$label_red_bis->setClass("label.outcome");
$table_income_month = new Table();
$table_income_month->setColumnsStyle("5dip;50%;50%");
$table_income_month->addControl($label_green_bis, 1, 1, 1, 1, "", "Middle");
$table_income_month->addControl($label_income_month, 1, 2, 1, 1, "Center", "Middle");
$table_income_month->addControl($input1, 1, 3, 1, 1, "Right", "Middle");
$label_outcome_month = new Label();
$label_outcome_month->setCaption("Outcome: ");
$label_outcome_month->setClass("label.black");
$input2 = new InputText();
$input2->setReadOnly(true);
$input2->setClass("label.black");
$table_outcome_month = new Table();
$table_outcome_month->setColumnsStyle("5dip;50%;50%");
$table_outcome_month->addControl($label_red_bis, 1, 1, 1, 1, "", "Middle");
$table_outcome_month->addControl($label_outcome_month, 1, 2, 1, 1, "Center", "Middle");
$table_outcome_month->addControl($input2, 1, 3, 1, 1, "Right", "Middle");
$table_first->addControl($table_account, 1, 1);
$table_first->addControl($table_income, 2, 1);
$table_first->addControl($table_outcome, 3, 1);
$table_second->addControl($table_title_month, 1, 1);
$table_second->addControl($table_income_month, 2, 1);
$table_second->addControl($table_outcome_month, 3, 1);
//addPosition(control, left, width, top, height, right, bottom, zorder)
示例7: refresh
$dc_cat->setClass("input.form");
$label_type = new Label();
$label_type->setCaption("Move type:");
$label_type->setClass("label.black");
$label_value = new Label();
$label_value->setCaption("Value:");
$label_value->setClass("label.black");
$label_date = new Label();
$label_date->setCaption("Date:");
$label_date->setClass("label.black");
$label_description = new Label();
$label_description->setCaption("Description:");
$label_description->setClass("label.black");
$label_categorie = new Label();
$label_categorie->setCaption("Categorie:");
$label_categorie->setClass("label.black");
$table->addControl($label_value, 1, 1);
$table->addControl($value, 1, 2);
$table->addControl($label_date, 2, 1);
$table->addControl($date, 2, 2);
$table->addControl($label_description, 3, 1);
$table->addControl($description, 3, 2);
$table->addControl($label_type, 4, 1);
$table->addControl($move_type, 4, 2);
$table->addControl($label_categorie, 5, 1);
$table->addControl($dc_cat, 5, 2);
$mainTable->addControl($table, 1, 1);
$win->addControl($mainTable);
function refresh()
{
$url = "http://demo.kikapptools.com/Gastos/crud/getMovement.php?id=" . $token . "&idMov=" . $idMov_trans;
示例8: SDPanel
<?php
/**
* Main object.
* @author Kikapp
* @version 1.0
*/
$win = new SDPanel();
$win->setCaption("Welcome");
$actionBar = new ActionBar();
$actionBar->setClass("applicationBars");
$mainTable = new Table();
$mainTable->setClass("table.general");
$label = new Label();
$label->setCaption("Welcome to the Global Example!");
$label->setClass("label.Home");
$label2 = new Label();
$label2->setCaption("Use the Slide to open Facebook, Twitter and Map!");
$label2->setClass("label.Home");
$image = new Image();
$image->setImage("img/Android/hdpi/appicon.png");
$mainTable->addControl($label, 2, 1, 1, 1, "Center", "Middle");
$mainTable->addControl($label2, 3, 1, 1, 1, "Center", "Middle");
$mainTable->addControl($image, 4, 1, 1, 1, "Center", "Middle");
$win->addControl($mainTable);
示例9: Slide
$lbl_add = new Label();
$lbl_add->setCaption("Add task");
$lbl_add->setClass("label.MenuItem");
$table_add->onTap(add());
$table_add->addControl($img_add, 1, 1, 1, 1, "Center", "Middle");
$table_add->addControl($lbl_add, 1, 2, 1, 1, "Left", "Middle");
//Deleted button
$table_deleted = new Table();
$table_deleted->setClass("table.MenuItem");
$table_deleted->setColumnsStyle("20%;80%");
$img_deleted = new Image();
$img_deleted->setImage("img/ic_deleted.png");
$img_deleted->setClass("image.MenuItem");
$lbl_deleted = new Label();
$lbl_deleted->setCaption("Done");
$lbl_deleted->setClass("label.MenuItem");
$table_deleted->onTap(openDoneList());
$table_deleted->addControl($img_deleted, 1, 1, 1, 1, "Center", "Middle");
$table_deleted->addControl($lbl_deleted, 1, 2, 1, 1, "Left", "Middle");
//Add controls to menu
$table->addControl($table_header, 1, 1);
$table->addControl($table_home, 2, 1);
$table->addControl($table_deleted, 3, 1);
$table->addControl($table_add, 4, 1);
//Add controls to main screen
$win->addControl($table);
$win->Render();
function Slide()
{
$period = new InputNumeric();
$period->setValue(0);
示例10: Table
$table_form = new Table();
$table_form->setRowsStyle("76dip;76dip");
$table_form->setClass("tableforms");
$email = new InputEmail();
$email->setClass("inputForm");
$email->setInviteMessage("E-Mail");
$pass = new InputText();
$pass->setClass("inputForm");
$pass->setInviteMessage("Password");
$pass->setIsPassword(true);
$btn_save = new Button();
$btn_save->setCaption("LOG IN");
$btn_save->setClass("buttonform");
$btn_save->onTap(login());
$lbl_signup = new Label();
$lbl_signup->setClass("label.SubTitlelogin");
$lbl_signup->setCaption("Not a store member?");
$btn_register = new Button();
$btn_register->setCaption("SIGN UP NOW");
$btn_register->setClass("button.Small");
$btn_register->onTap(register());
$table_form->addControl($email, 1, 1);
$table_form->addControl($pass, 2, 1);
$table->addControl($lbl_home, 1, 1, 1, 1, "Center", "Middle");
$table->addControl($table_form, 2, 1);
$table_button = new Table();
$table_button->addControl($btn_save, 1, 1);
$table_button->addControl($lbl_signup, 2, 1, 1, 1, "Center", "Middle");
$table_button->addControl($btn_register, 3, 1);
$table->addControl($table_button, 3, 1);
$win->addControl($table);
示例11: clientStart
<?php
$win = new SDPanel();
$win->setCaption("Balance");
$token = new InputText(80);
$maintable = new Table();
$maintable->setRowsStyle("100%");
$maintable->setWidth("100%");
$maintable->setHeight("100%");
$input = new InputNumeric(11);
$input->setClass("label.black");
$input->setReadOnly(true);
$label = new Label();
$label->setCaption("Total balance:");
$label->setClass("label.black");
$table = new Table();
$table->setRowsStyle("100%");
$table->setWidth("100%");
$table->setHeight("65%");
$table->setClass("table.account");
$table->addControl($label, 1, 1, 1, 1, "Center", "Middle");
$table->addControl($input, 1, 2, 1, 1, "Center", "Middle");
$maintable->addControl($table, 1, 1);
$win->addControl($maintable);
function clientStart()
{
$token = StorageAPI::Get("token");
$url = "http://demo.kikapptools.com/Gastos/crud/getAccount.php";
$httpClient = new httpClient();
$httpClient->addVariable("id", $token);
$result = $httpClient->Execute('POST', $url);
示例12: SDPanel
<?php
/**
* Table example.
* mainTable.php
*/
//Create SDPanel
$win = new SDPanel();
$win->setCaption("Hello world!");
//Labels to add to the table
$label_one = new Label();
$label_one->setCaption("Text 1");
$label_one->setClass("label.Example");
$label_two = new Label();
$label_two->setCaption("Text 2");
$label_two->setClass("label.Example");
//Inner table
$table = new Table();
$table->setClass("table.Example");
$table->addControl($label_one, 1, 1, 1, 1, "Center", "Middle");
$table->addControl($label_two, 2, 1, 1, 1, "Center", "Middle");
$win->addControl($table);
示例13: Grid
$list = new Grid();
$list->addData(load_grid());
$list->addSearch($name);
$table_grid = new Canvas();
$table_grid->setClass("tableTableDetailMain");
$id = new InputNumeric();
$name = new InputText();
$name->setClass("inputTitle");
/*
$status = new InputBoolean();
$status->setLabelCaption("Status");
$status->setLabelPosition("Left");
*/
$statusLabel = new Label();
$statusLabel->setCaption("Done");
$statusLabel->setClass("inputcommon");
$statusLabel->onTap(changeStatus());
/*
$statusButton = new ButtonBar();
$statusButton -> setCaption("change");
//$statusButton -> setImage("img/ico_thumb.png");
$statusButton -> setClass("buttonform");
$statusButton -> onTap(changeViewType());
*/
$table_list = new Table();
$table_list->addControl($name, 1, 1, 1, 4, "Left", "Middle");
$table_list->addControl($statusLabel, 1, 2, 1, 1, "Right", "Middle");
//$table_list -> addControl($status,1,3,1,1,"Right","Middle");
//$table_list -> addControl($statusButton,1,4,1,1,"Right","Middle");
$table_grid->addPosition($table_list, "0%", "100%", "0", "50dip", "0%", "100%");
$table_grid->onTap(detail());