Comment in Table Cells
I'm working in a table and what to add comments to some of the cells. When I click in to the text in a cell, the "Comment" on the Insert menu is greyed out (not available). If I select a cell, Comment is available but the comment bubble is positioned as central to the whole table. What I want is different comments in different cells - how do I do this?
Thank you
Ian
Hi Ian,
Welcome to Pages discussions.
Yes that would be a nice feature for sure.
If the ability to position comments is important to you please at the top of your screen to the right of the blue Apple click "Pages" then click "Provide Pages Feedback". This will send your suggestion to the Pages team directly. I've sent many as well.
Sincerely,
RicD
Similar Messages
-
Insert comment in Table cell/row
Is it possible to enter a comment in a specific table cell? When I try it only enters a comment for the whole/entire table. Thanks.
Yes you can. Click in the cell you want to make a comment about. The cell should get a blue line in dictating it is selected. Click on the Comment button in the tool bar.
!http://img25.imageshack.us/img25/2347/commenttable.jpg!
Message was edited by: fruhulda -
IPhone UISwitch not appearing correctly in table cells
I have a table cell with a UISwitch attached to it.
When you click the switch it works (but not without a bit of code to make it switch when the word 'on' and 'off' are actually clicked) but when the table cell itself is clicked the switch distorts like shown here:
http://img35.imageshack.us/img35/6510/picture1df.png
what is the correct way to make a table cell with a UISwitch?The code you posted looks like it should work on 3.0 just fine.
I've tried a custom table cell and it did the same thing
Assuming your custom subclass was built and used correctly, the above tells me something is definitely wrong in the cell's environment.
Perhaps it's something to do with the selecting of the row method?
Well that's certainly the first place to look. The delegate method you posted looks kinky. I would comment out that method, then go back to the solutions that didn't work in the past and see if your tableView:didSelectRowAtIndexPath: hasn't been the problem all along.
In any case I would get rid of the deselect message in tableView:didSelectRowAtIndexPath:. What are you trying to accomplish there? If you simply want to disable all selections, you can just code tableView.allowsSelection=NO during setup. If you want to know the user's selection but don't want the cell to actually become selected, try something like this in the delegate:
- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
return nil;
If you want the cell to actually become selected, but don't want its appearance to change, try cell.selectionStyle=UITableViewCellSelectionStyleNone in tableView:cellForRowAtIndexPath:.
If tableView:didSelectRowAtIndexPath: turns out not to have been the problem, we'll need to look at the rest of your table view code. I've found the kind of problem you described is easily isolated once you have faith in some assumptions. In this case you just need to believe that both the subclass solution and the code in UICatalog will allow a UISwitch to display and operate perfectly. Once you believe that, you'll pay more attention to the rest of you code.
One excellent way to gain faith in the basic structure is to start a fresh testbed and, for example, use code similar to UICatalog to bring up a table view with a UISwitch in one or more cells. Once you see how easy it is to make that work, you can start backing in some of your more creative init, delegate and/or data source methods until you break the testbed.
- Ray -
Hi,
Before I start to hack away a solution that might not be fx-like, I'd like to get your expert opinion about implementing cell flashing for a table view.
I have done this several times in Swing (using a timer, a customer renderer, switching the bg/fg colors 3 times, and firing up an even table cell update), but how do implement this feature in JavaFX?
* The table cell renderer (override def call (...)) could be used
* The bg/fg color switch can be done using different css styles
* what would be the best way to implement the timer and ask the view to "repaint" a specific cell?
Thx v muchBelow is a bit of code that does something like what you want (the port to groovy should be easy). It may need some testing/tweaking for a real scenario and I'm not sure just how many animated cells you could have going at a time before performance becomes an issue (maybe someone from the JFX team could comment on this?).
Also, regarding the use of styles for animating the change, you should be aware of this: Removing CSS style classes?
Basically you need to make sure your 'default' style has values set for everything your 'highlight' style messes with, otherwise the highlight won't get turned off.
import javafx.animation.FadeTransition;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import javafx.util.Callback;
import javafx.util.Duration;
public class TestApp extends Application
public static void main(String[] args)
Application.launch(args);
@Override
public void start(Stage stage) throws Exception
BorderPane root = new BorderPane();
TableView<Person> table = new TableView<Person>();
table.getItems().addAll(
new Person("Cathy", "Freeman"),
new Person("Albert", "Namatjira"),
new Person("Noel", "Pearson"),
new Person("Oodgeroo", "Nooncal")
TableColumn<Person, String> firstNameCol = new TableColumn<Person, String>("First Name");
firstNameCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("firstName")
table.getColumns().add(firstNameCol);
TableColumn<Person, String> lastNameCol = new TableColumn<Person, String>("Last Name");
lastNameCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("lastName")
lastNameCol.setCellFactory(new Callback<TableColumn<Person, String>, TableCell<Person, String>>()
public TableCell<Person, String> call(TableColumn<Person, String> column)
final FlashingLabel label = new FlashingLabel();
label.setStyle("-fx-background-color: #ffaaaa");
TableCell<Person, String> cell = new TableCell<Person, String>()
protected void updateItem(String value, boolean empty)
super.updateItem(value, empty);
label.setText(value);
label.setVisible(!empty);
cell.setGraphic(label);
return cell;
table.getColumns().add(lastNameCol);
root.setCenter(table);
Scene scene = new Scene(root, 800, 600);
scene.getStylesheets().add("styles.css");
stage.setScene(scene);
stage.show();
public class FlashingLabel extends Label
private FadeTransition animation;
public FlashingLabel()
animation = new FadeTransition(Duration.millis(1000), this);
animation.setFromValue(1.0);
animation.setToValue(0);
animation.setCycleCount(Timeline.INDEFINITE);
animation.setAutoReverse(true);
animation.play();
visibleProperty().addListener(new ChangeListener<Boolean>()
public void changed(ObservableValue<? extends Boolean> source, Boolean oldValue, Boolean newValue)
if (newValue)
animation.playFromStart();
else
animation.stop();
public class Person
private String firstName;
private String lastName;
private Person(String firstName, String lastName)
this.firstName = firstName;
this.lastName = lastName;
public String getFirstName()
return firstName;
public String getLastName()
return lastName;
} -
JTABLE Number Editor - Table Cell Renderer Clash
Hello gentlemen,
I have a JTABLE with an editable column 1. I implement a number editor and a table cell renderer (pls see below) to this column. I apply the setClickCountStart(2) method to the number editor in order to render each cell in the column editable only after two clicks. However, I believe setClickCountStart(2) is somehow overridden by a "default" functionality in my
CustomTableCellRenderer.
My problem is that any cell I select (click only once) in column1 is automatically editable whereas I only want a cell to be editable after two clicks.
Please see my code below. Any comment is more than welcome!
Cheers.
hoodNumberEditor = new NumberEditor();
hoodNumberEditor.setClickCountToStart(2);
class CustomTableCellRenderer extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(JTable table,
Object obj, boolean isSelected, boolean hasFocus, int row, int column) {
Component cell = super.getTableCellRendererComponent(
table, obj, isSelected, hasFocus, row, column);
if (isSelected) {
cell.setBackground(Color.white);
cell.setForeground(Color.black);
return cell;
CustomTableCellRenderer customrenderer = new CustomTableCellRenderer();
table.getColumn(1).setCellRenderer(customrenderer);
table.getColumn(1).setCellEditor(hoodNumberEditor);1) Your custom cell renderer does nothing extra, so you can depend on default renderer.
2) Instead of extending JLabel and implementing TableCellReneder, you should extend DefaultTableCellRenderer and override its get renderer method because DefaultTableCellRenderer itself extends JLabel and aditionally it does some optimizations etc., which you can miss if you implement your own renderer.
3) If you set foreground and background color in last else statement also, then you can see the values correctly in windows L&F as well.
Thanks! -
var aData = [
{notificationNo: "10000000", description: "Maintenance for boiler", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "ordered"},
{notificationNo: "10000010", description: "Genreal Maintenance for boiler", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "notordered"},
{notificationNo: "10000011", description: "boiler Maintenance", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "ordered"},
{notificationNo: "10000012", description: "Pump breakdown", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "ordered"},
{notificationNo: "10000013", description: "External service boiler", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "notordered"},
jQuery.sap.require("sap.ui.model.json.JSONModel");
var oEnterpriseAsset_NotificationConsole;
sap.ui.model.json.JSONModel.extend("EAM_Notification_Console", {
CreateNotificationConsole:function(){
oEnterpriseAsset_NotificationConsole = this;
var oTable = new sap.ui.table.Table({
//title: "Table Example",
visibleRowCount: 7,
firstVisibleRow: 3,
selectionMode: sap.ui.table.SelectionMode.Single,
/* toolbar: new sap.ui.commons.Toolbar({items: [
new sap.ui.commons.Button({text: "Button in the Toolbar", press: function() { alert("Button pressed!"); }})
extension: [
new sap.ui.commons.Button({text: "Button in the Extension Area", press: function() { alert("Button pressed!"); }})
}).addStyleClass("tableform");;
oTable.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Notification"}),
template: new sap.ui.commons.Link().bindProperty("text", "notificationNo").bindProperty("href", "href",
function(aValue)
// sortProperty: "notificationNo",
//filterProperty: "notificationNo",
width: "200px"
oTable.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Description"}),
template: new sap.ui.commons.Link().bindProperty("text", "description").bindProperty("href", "href"),
//sortProperty: "notificationNo",
//filterProperty: "notificationNo",
//width: "200px"
var oModel = new sap.ui.model.json.JSONModel();
oModel.setData({modelData: aData});
oTable.setModel(oModel);
oTable.bindRows("/modelData");
var idForTable= "DimTable"
//alert("id of tbale " + idForTable);
var htmlOutput = '<table id=' + idForTable + ' name="DimTab" style="border: 1px solid black;margin-left:15px;" cellpadding=6 cellspacing=0><tr style="background-color:#E5E5E5"><td><b>Dimension</b></td><td><b>Value</b></td></tr>';
for(var i=0;i<aData.length;i++)
alert(aData[i].notificationNo);
htmlOutput += '<tr style="display:none;"><td style="border-right:1px solid #e5e5e5;">Contract No</td><td>'+ aData[i].notificationNo+'</td></tr>';
htmlOutput += '<tr style="display:none;"><td style="border-right:1px solid #e5e5e5;">Unit No</td><td>'+ aData[i].description+'</td></tr>';
htmlOutput += '</table>';
var html2 = new sap.ui.core.HTML({
// static content
//content : "<div style='position:relative;background-color:white;'>Weather</div><script src='//www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/builtin_weather.xml&synd=open&w=320&h=200&title=__MSG_weather_title__&lang=en&country=ALL&border=http%3A%2F%2Fwww.gmodules.com%2Fig%2Fimages%2F&output=js'></script>",
content : htmlOutput,
//2 wrkng sydney content : '<div id="cont_Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx"><div id="spa_Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx"><a id="a_Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx" href="http://www.weather-wherever.co.uk/australia/sydney_v37463/" target="_blank" style="color:#333;text-decoration:none;">Weather forecast</a> © weather</div><script type="text/javascript" src="http://widget.weather-wherever.co.uk/js/Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx"></script></div>',
//content : '<div style="margin-left:-10px;margin-top:10px;width:100%;"><LINK rel="StyleSheet" href="http://weatherandtime.net/new_wid/w_5/style.css" type="text/css" media="screen"><div class="ww_5" id="ww_5_2119"><div class="l_b"></div><div class="c_b"><div class="day" id="d_0"><span class="den"></span><br><span class="date"></span><br><span class="temp"></span><div class="pict"></div><span class="press"></span><br><span class="hum"></span><br><span class="vet"></span><br></div><div class="day" id="d_1"><span class="den"></span><br><span class="date"></span><br><span class="temp"></span><div class="pict"></div><span class="press"></span><br><span class="hum"></span><br><span class="vet"></span><br></div><div class="day" id="d_2"><span class="den"></span><br><span class="date"></span><br><span class="temp"></span><div class="pict"></div><span class="press"></span><br><span class="hum"></span><br><span class="vet"></span><br></div><div class="cl"></div><div class="links"><a target="_blank" title="Pune Weather forecast" href="http://weatherandtime.net/en/Asia/India/Pune-weather.html">Pune Weather forecast</a><br><a style="font-size:12px !important;color:#12A0D7 !important;text-decoration:none !important;" href="http://weatherandtime.net/en/widgets-gallery.html" title="weather"></a></div></div><div class="r_b"></div></div><script type="text/javascript" src="http://weatherandtime.net/w_5.js?city=2119&lang=en&type=2&day=3"></script></div>',
// initially behaves the same as Sample 1
preferDOM : false,
// use the afterRendering event for 2 purposes
return oTable;
/* In the screen shot as u can see.. I have to highlight the table cell in green color and red color for ordered and unordered status(which is binded to a json data) respectively....anyone please help??Hi Abhi,
Check this link it may helpHow I made highlight of specific values in Table -
Hi there
Hope everyone is doing well
I have been using the addt looper wizard and it works great.....
I usually put all the things I want to loop into one cell.... then select all the things and apply the looper.... which works fine....
But..... it is hard to align all the elements I want to loop
I have been using transparent gif images to space the loops evenly but when I space dynamic taxt on top of each other there is a large gap.....
It is a nightmare to get it looking even
Ok say I want to loop this.....
A thumbnail
Product ID
Price
It would look like this
A thumbnail
Product ID
Price
Because I cannot reduce the space between the lines......
So I would like to place all the different elements in separate table cells and loop them..... I have tried and get really strange results....
When you look at most online shops, their product pages have a thumbnail image the id, price, description, etc.... all spaced evenly.... and looks like is looped...... So.... how do I do it?
Is there any easier way to align the things I want to loop?
Any help would be greatHi there
I seem to have figured out how to loop cells....
Should have thought of it earliar but anyway
Was easy....
Just create a looped (repeat) region and insert a table into the region and edit the table to align all the looped elements easily....
Cool -
Highlighting text in a table cell
Im trying to get text in a table have it background shaded a different colour to the rest of the table cell but it doesnt work. No exceptions are thrown does anyone have any idea.
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
setFont(table.getFont());
this.setText(value));
this.selectAll();
this.setSelectionColor(new Color(0,0,255,100);
return this;
}The answer is similar to what someone else asked recently for highlighting text in a JFormattedTextField cell.
class MyFocusListener extends FocusAdapter
public void focusGained(FocusEvent e)
SwingUtilities.invokeLater(new Runnable()
public void run()
selectAll();
Put that in your cell editor or its base class. You can change the color or whatever you want. I think the problem is a timing thing where normal focus processing is interrupting your changes. So give the focus processing time to run with this Runnable triggering your processing to occur on the Awt thread (as is proper) after the system is doing whatever it wants to do. Let us know if it works for you. -
How can I make a table cell extend beyond a page? The text disappears when the cell becomes bigger than the page. I want the table to continue to the next page.
As a student, you might be able to get Office for Mac from the college bookstore at a substantial discount. Otherwise, I think your best option for documents that need to be shared with Office users is to get one of the free Office clones such as LibreOffice.
-
How to use a checkbox table cell in FXML
I've figured out how to make a column in a TableView render as a checkbox rather then just text when the UI is written in Java. Now I'm trying to figure out how to do the same thing with FXML. I've tried a couple experiments which have all failed, usually with an exception complaining that it can't coerce a table cell class type (or extension) to an interface (i.e. Callback).
Right now I'm just trying to make one of the columns be a checkbox. I'm not trying to use any custom type. In other words, in Java I would have done the following:
TableColumn<MyModel, Boolean> col1 = new TableColumn<MyModel, Boolean>();
col1.setCellValueFactory(new PropertyValueFactory<MyModel, Boolean>("col1Field"));
col1.setCellFactory(CheckBoxTableCell.forTableColumn(col1));This works when I build the UI using Java API calls. Does anyone know how to do this in FXML?Thank you both.
I used Luca's suggestion as a first step.
You'll find attached my v.i. that enables me to do what I wanted. It finally works as I expected. It would have been much simpler if my DAQ was able to measure directly a resistance!
Loris
Attachments:
banc_de_test_température.vi 205 KB -
I can't be the only person to find it incredibly frustrating that it seems impossible to add a comment to a cell in beta. I use this function a lot on my ipad - is it really not available in beta?? And if not, why not??
Hey lolitajoon,
Thanks for the question. You are correct, comments are hidden from all iWork apps when imported to iWork for iCloud beta. Please note that the current release of Numbers for iCloud is a beta version. Therefore, certain features aren’t yet supported.
Opening iWork files in iWork for iCloud beta
http://support.apple.com/kb/HT5663
Features that behave differently after importing your document
These features behave differently in iWork for iCloud beta. They don't change in the original copy of your iWork for iOS or iWork for Mac document.
Importing from all iWork apps
- Comments are hidden.
Additional information:
Numbers for iCloud beta: Coming soon in Numbers for iCloud beta
http://support.apple.com/kb/PH12840
Thanks,
Matt M. -
Changing the color of a Basic line object nested in a table cell
Can anyone help me out here...I have inserted a line object from the Basic palette into a table cell on my web page and it displays fine but is default black color...I would like to change the color but haven't been successful in doing so..any ideas
Hmm - doesn't sound right.
"color=#hex" is not appropriate HTML markup.... Can you show us where you
made this change?
Murray -
How to wrap a line in a table cell in adf
How do I wrap a line of text in a table cell?
Yes, I tried that. But I have 2 sets of information. I want it to wrap exactly at the start of the second piece of information
So I am trying to use noWrap in combination with width. How else can I do this. appending \n does not work -
How to print global variable in smart form table cell
hi,
i have smartform and i insert table in it, i also have set global variable, i want to show variable in table cell.
regards
shahid raisHi Shahid Rais
You can use this global variable that has been declared in anywhere as you like.
For displaying global variable in table lines, You can first set the column and row of the table by using the table tab in table node . Then, u can decide either the variable u want to used will be placed on header, main, or footer. After that, right click on one of the table part, and choose create table line. After choosing the correct line type as already been declared in the table painter, just simply right click on the table cell, and then create text node.
You can now enter your variable by using "insert field".
And don't forget the & & signs before and after your variable name.
Regards,
William Prawira -
How to write text vertically in an table cell?
Is it possible to make a table cell where the
text would be written along a vertical base line?
I found how to make a text box and rotate it
vertically.
How may I place such a text box in a table cell?
danHello daniel,
if the table will not be resized or repositioned a lot, the best way to display what you want to have is to create a textbox with the styles and adjustments you need, rotate it and place it over the table cell. Be sure to make the cell big enough to pretend the text of the textbox would be inside of it. The textbox has to be a fix positioned object in the top layer.
It's only a work-around, but the best you can achieve.
Frank.
Maybe you are looking for
-
My phone wont let me turn off or on wifi?????
my i phone will not let me turn wifi on or off tried restating and etc
-
My ipad won't let me into facebook and when I try to update App, it tells me facebook is not compatible with my ipad. I checked for updates and it says I have the current version (5.1.1). Should I have IOS 7 on this ipad and how to get?
-
TV@nywhere master. video problem
hi. i got the tv@nywhere card for my wife for xmas & it was working fine until recently when all of a sudden when recording a clip from the dvd/vcr & she goes to add it to the project she's working on it opens only as a mpeg sound clip??? all was fin
-
Applications open and close without really starting
Often, when I download a 3rd party program (yes, I know, 3rd party, not supported, bear with me) and then try and run it, the program will appear in dock, bounce once or twice, the black triangle will appear and suddenly the program will just close a
-
Internal DNS - emailsrvr.mydomain won't resolve, IP does - www works.
Internal Mail won't resolve to emailserver domain, but LAN ip is fine Hey gang, longtime reader first time poster. After wrestling with this issue, i'm about out of ideas. Here's my setup. Leopard server 10.5.4, running OD master (all rocking), AFP,