|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object RelativeLayout android.TICO.cell
public class cell
Defines a cell
and its attributes.
Constructor Summary | |
---|---|
cell(Context context,
int marginLeft,
int marginTop,
int height,
int width,
int imageURL,
String texto,
int marcoSize)
Creates a new TCell for control options. |
|
cell(Context context,
int marginLeft,
int marginTop,
int height,
int width,
String imageURL,
String texto,
int marcoSize)
Creates a new TCell . |
Method Summary | |
---|---|
boolean |
getAccumulate()
Get if the cell accumulates on click |
int |
getDestiny()
Get the destiny board position. |
boolean |
getOrdered()
Get if the cell is ordered for the automatic scan |
String |
getSendText()
Get the text that the cell will send to a text area |
String |
getSendTextArea()
Get the id of the textArea to send text |
int |
getSendTextTimer()
Set the time the sent text will be visible before get back to the original textArea text. |
String |
getSound()
get the URL of the sound |
String |
getSoundAlternate()
Get the URL of the alternative sound |
String |
getVideo()
Get the URL of the video |
void |
setAccumulate(boolean bool)
Set if the cell accumulates on click |
void |
setAlternateFrameSize(int size)
Set the alternate frame size |
void |
setBackgroundDrawable(GradientDrawable color)
Set the background frame gradient color |
void |
setColorFrame(int color)
Set the main frame color |
void |
setColorFrameAlternate(int color)
Set the alternative frame color |
void |
setDestiny(int position)
Set the destiny board or -1 if there is no destiny. |
void |
setImageAlternate(String url)
Set the URL of the alternative image |
void |
setInteriorBackgroundColor(int color)
Set the background frame color |
void |
setOrdered(boolean ordered)
Set if the cell is ordered for the automatic scan |
void |
setSendText(String text)
Set the text that the cell will send to a text area |
void |
setSendTextArea(String idTextArea)
Set the id of the textArea to send text |
void |
setSendTextTimer(int time)
Set the time the sent text will be visible before get back to the original textArea text. |
void |
setSound(String url)
Set the URL of the sound |
void |
setSoundAlternate(String url)
Set the URL of the alternative sound |
void |
setTextColor(int color)
Set the color of the text |
void |
setTextFont(int font)
Set the style font of the text |
void |
setTextSize(float size)
Set the text size of the cell. |
void |
setVideo(String url)
Set the URL of the video |
void |
showAlternateCell()
Set the visible cell to the alternative color frame, alternative frame size and alternative image |
void |
showMainCell()
Set the visible cell to the main color frame, main frame size, and main image |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public cell(Context context, int marginLeft, int marginTop, int height, int width, String imageURL, String texto, int marcoSize)
TCell
.
context
- The context
that contains the cell datamarginLeft
- The number marginLeft
of pixels of the left marginmarginTop
- The number marginTop
of pixels of the top marginheight
- The height
in pixels of the cell cell
width
- The width
in pixels of the cell cell
imageURL
- The URL imageURL
of the image in the cell
texto
- The text texto
of the cell cell
marcoSize
- The size
of the frame cell cell
public cell(Context context, int marginLeft, int marginTop, int height, int width, int imageURL, String texto, int marcoSize)
TCell
for control options.
context
- The context
that contains the cell datamarginLeft
- The number marginLeft
of pixels of the left marginmarginTop
- The number marginTop
of pixels of the top marginheight
- The height
in pixels of the cell cell
width
- The width
in pixels of the cell cell
imageURL
- The int identificator in R.id of the image in the cell
texto
- The text texto
of the cell cell
marcoSize
- The size
of the frame cell cell
Method Detail |
---|
public void setTextSize(float size)
size
- The desired size
of the text in the cellpublic void setColorFrame(int color)
color
- The color
of the main frame colorpublic void setColorFrameAlternate(int color)
color
- The color
of the alternative frame colorpublic void setImageAlternate(String url)
url
- The url
of the alternative imagepublic void setSound(String url)
url
- The url
of the soundpublic void setSoundAlternate(String url)
url
- The url
of the alternative soundpublic void setVideo(String url)
url
- The url url
of the videopublic void setAccumulate(boolean bool)
bool
- boolean
true if accumulates, otherwise false.public String getSound()
url
of the soundpublic String getSoundAlternate()
url
of the alternative soundpublic String getVideo()
url
of the videopublic boolean getAccumulate()
boolean
true if accumulates, otherwise false.public void setDestiny(int position)
position
- integer
of the destiny board position.public int getDestiny()
integer
of the destiny board, -1 if there is no destiny.public void showMainCell()
public void showAlternateCell()
public void setTextColor(int color)
color
- The integer that defines the desired color for the textpublic void setInteriorBackgroundColor(int color)
color
- The color
of the backgroundpublic void setBackgroundDrawable(GradientDrawable color)
color
- The gradient color
of the backgroundpublic void setTextFont(int font)
font
- The style
of the textpublic void setAlternateFrameSize(int size)
size
- The size
of the alternate framepublic void setOrdered(boolean ordered)
ordered
- boolean
true if is ordererpublic boolean getOrdered()
boolean
true if is ordererpublic void setSendText(String text)
text
- The text to sendpublic void setSendTextArea(String idTextArea)
id
of the textArea
to send text
idTextArea
- the id
of the textArea
public void setSendTextTimer(int time)
textArea
text.
time
- the time in milisecondspublic String getSendText()
public String getSendTextArea()
id
of the textArea
to send text
textArea
public int getSendTextTimer()
textArea
text.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |